Index: framework/base/lib/jpim-0.1.jar
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: framework/geronimo/ofbiz-component.xml
===================================================================
Index: framework/geronimo/src/main/java/org/apache/ofbiz/geronimo/GeronimoContainer.java
===================================================================
Index: framework/geronimo/src/main/java/org/apache/ofbiz/geronimo/GeronimoTransactionFactory.java
===================================================================
Index: specialpurpose/ebay/template/find/EbayAdvancedSearch.ftl
===================================================================
--- specialpurpose/ebay/template/find/EbayAdvancedSearch.ftl	(revision 1761125)
+++ specialpurpose/ebay/template/find/EbayAdvancedSearch.ftl	(working copy)
@@ -18,40 +18,43 @@
 -->
 
 <script type="text/javascript">
-//<![CDATA[
-    function selectChange(formId, elementId) {
-        if (elementId.id == 'searchProductStoreId') {
-           document.getElementById('searchCatalogId')[document.getElementById('searchCatalogId').selectedIndex].value = "";
-           if (document.getElementById('searchCategoryId').selectedIndex) {
-               document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId').selectedIndex].value = "";
-           } else {
-               document.getElementById('searchCategoryId').value = "";
-           }
+    //<![CDATA[
+        function selectChange(formId, elementId) {
+            if (elementId.id == 'searchProductStoreId') {
+                document.getElementById('searchCatalogId')[document.getElementById('searchCatalogId')
+                        .selectedIndex].value = "";
+                if (document.getElementById('searchCategoryId').selectedIndex) {
+                    document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId')
+                            .selectedIndex].value = "";
+                } else {
+                    document.getElementById('searchCategoryId').value = "";
+                }
+            }
+            if (elementId.id == 'searchCatalogId') {
+              if (document.getElementById('searchCategoryId').selectedIndex) {
+                  document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId')
+                          .selectedIndex].value = "";
+              } else {
+                  document.getElementById('searchCategoryId').value = "";
+              }
+            }
+            formId.action = "<@ofbizUrl>main</@ofbizUrl>";
+            formId.submit();
         }
-        if (elementId.id == 'searchCatalogId') {
-            if (document.getElementById('searchCategoryId').selectedIndex) {
-               document.getElementById('searchCategoryId')[document.getElementById('searchCategoryId').selectedIndex].value = "";
-           } else {
-               document.getElementById('searchCategoryId').value = "";
-           }
+        function submit(id) {
+            var formId = id;
+            if (!jQuery('#searchCatalogId').is(":empty") && !jQuery('#searchProductStoreId').is(":empty")) {
+                document.getElementById(formId).submit();
+            } else {
+                if (jQuery('#searchProductStoreId').is(":empty")) {
+                    jQuery('#productStoreErrorMessage').fadeIn('fast');
+                }
+                if (jQuery('#searchCatalogId').is(":empty")) {
+                    jQuery('#catalogErrorMessage').fadeIn('fast');
+                }
+            }
         }
-        formId.action="<@ofbizUrl>main</@ofbizUrl>";
-        formId.submit();
-    }
-    function submit (id) {
-      var formId = id;
-      if(!jQuery('#searchCatalogId').is(":empty") && !jQuery('#searchProductStoreId').is(":empty")){
-          document.getElementById(formId).submit();
-      } else {
-          if(jQuery('#searchProductStoreId').is(":empty")) {
-               jQuery('#productStoreErrorMessage').fadeIn('fast');
-          }
-          if(jQuery('#searchCatalogId').is(":empty")) {
-             jQuery('#catalogErrorMessage').fadeIn('fast');
-          }
-      }
-    }
-//]]>
+    //]]>
 </script>
 <div class="screenlet">
   <div class="screenlet-title-bar">
@@ -58,7 +61,8 @@
     <h3>${uiLabelMap.ProductAdvancedSearchInCategory}</h3>
   </div>
   <div class="screenlet-body">
-    <form id="advToKeywordSearchform" name="advToKeywordSearchform" method="post" action="<@ofbizUrl>keywordsearch</@ofbizUrl>" style="margin: 0;">
+    <form id="advToKeywordSearchform" name="advToKeywordSearchform" method="post"
+        action="<@ofbizUrl>keywordsearch</@ofbizUrl>" style="margin: 0;">
       <fieldset>
         <input type="hidden" name="VIEW_SIZE" value="25"/>
         <input type="hidden" name="PAGING" value="Y"/>
@@ -72,9 +76,17 @@
               </td>
               <td valign="middle">
                 <div>
-                  <b>"${(searchCategory.description)!}" [${(searchCategory.productCategoryId)!}]</b> ${uiLabelMap.ProductIncludeSubCategories}
-                  <label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/></label>
-                  <label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/></label>
+                  <b>
+                    "${(searchCategory.description)!}"[${(searchCategory.productCategoryId)!}]
+                  </b> ${uiLabelMap.ProductIncludeSubCategories}
+                  <label>
+                    ${uiLabelMap.CommonYes}
+                    <input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonNo}
+                    <input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/>
+                  </label>
                 </div>
               </td>
             </tr>
@@ -84,19 +96,27 @@
                 ${uiLabelMap.ProductProductStore}:
               </td>
               <td valign="middle">
-                <select name="productStoreId" id="searchProductStoreId" onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'), document.getElementById('searchProductStoreId'));">
+                <select name="productStoreId" id="searchProductStoreId"
+                    onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'),
+                    document.getElementById('searchProductStoreId'));">
                   <#if ebayConfigList?has_content>
                     <#list ebayConfigList as ebayConfig>
-                      <#assign productStore = delegator.findOne("ProductStore", {"productStoreId" : ebayConfig.productStoreId}, true) />
+                      <#assign productStore = delegator.findOne("ProductStore",
+                          {"productStoreId" : ebayConfig.productStoreId}, true) />
                       <#assign displayDesc = productStore.storeName?default("${uiLabelMap.ProductNoDescription}") />
                       <#if (18 < displayDesc?length)>
-                         <#assign displayDesc = displayDesc[0..15] + "...">
-                       </#if>
-                       <option value="${productStore.productStoreId}" <#if productStoreId! == productStore.productStoreId> selected="selected"</#if>>${displayDesc} [${productStore.productStoreId}]</option>
-                     </#list>
+                        <#assign displayDesc = displayDesc[0..15] + "...">
+                      </#if>
+                      <option value="${productStore.productStoreId}"
+                          <#if productStoreId! == productStore.productStoreId> selected="selected"</#if>>
+                        ${displayDesc} [${productStore.productStoreId}]
+                      </option>
+                    </#list>
                   </#if>
                 </select>
-                <span id="productStoreErrorMessage" style="display:none;" class="errorMessage">${uiLabelMap.CommonRequired}</span>
+                <span id="productStoreErrorMessage" style="display:none;" class="errorMessage">
+                  ${uiLabelMap.CommonRequired}
+                </span>
               </td>
             </tr>
             <tr>
@@ -105,16 +125,23 @@
               </td>
               <td valign="middle">
                 <div>
-                  <select name="SEARCH_CATALOG_ID" id="searchCatalogId" onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'), document.getElementById('searchCatalogId'));" class="required">
+                  <select name="SEARCH_CATALOG_ID" id="searchCatalogId"
+                      onchange="javascript:selectChange(document.getElementById('advToKeywordSearchform'),
+                      document.getElementById('searchCatalogId'));" class="required">
                     <#list prodCatalogList as prodCatalog>
                       <#assign displayDesc = prodCatalog.catalogName?default("${uiLabelMap.ProductNoDescription}") />
                       <#if (18 < displayDesc?length)>
                         <#assign displayDesc = displayDesc[0..15] + "...">
                       </#if>
-                      <option value="${prodCatalog.prodCatalogId}" <#if searchCatalogId! == prodCatalog.prodCatalogId> selected="selected"</#if>>${displayDesc} [${prodCatalog.prodCatalogId}]</option>
+                      <option value="${prodCatalog.prodCatalogId}" <#if searchCatalogId! == prodCatalog.prodCatalogId>
+                          selected="selected"</#if>>
+                        ${displayDesc} [${prodCatalog.prodCatalogId}]
+                      </option>
                     </#list>
                   </select>
-                  <span id="catalogErrorMessage" style="display:none;" class="errorMessage">${uiLabelMap.CommonRequired}</span>
+                  <span id="catalogErrorMessage" style="display:none;" class="errorMessage">
+                    ${uiLabelMap.CommonRequired}
+                  </span>
                 </div>
               </td>
             </tr>
@@ -128,23 +155,41 @@
                     <select name="SEARCH_CATEGORY_ID" id="searchCategoryId">
                       <option value="">- ${uiLabelMap.ProductAnyCategory} -</option>
                       <#list categoryIds as categoryId>
-                        <#assign productCategory = delegator.findOne("ProductCategory", {"productCategoryId" : categoryId}, true) />
-                        <#assign displayDesc = productCategory.categoryName?default("${uiLabelMap.ProductNoDescription}") />
+                        <#assign productCategory = delegator.findOne("ProductCategory",
+                            {"productCategoryId" : categoryId}, true) />
+                        <#assign displayDesc =
+                            productCategory.categoryName?default("${uiLabelMap.ProductNoDescription}") />
                         <#if (18 < displayDesc?length)>
                           <#assign displayDesc = displayDesc[0..15] + "...">
                         </#if>
-                        <option value="${productCategory.productCategoryId}">${displayDesc} [${productCategory.productCategoryId}]</option>
+                        <option value="${productCategory.productCategoryId}">
+                          ${displayDesc} [${productCategory.productCategoryId}]
+                        </option>
                       </#list>
                     </select>
                   <#else>
-                    <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}" formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/>
+                    <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}"
+                        formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId"
+                        fieldFormName="LookupProductCategory"/>
                   </#if>
                   ${uiLabelMap.ProductIncludeSubCategories}
-                  <label>${uiLabelMap.CommonYes}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked" /></label>
-                  <label>${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N" /></label>
-                  <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="" checked="checked" /></label>
-                  <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="Y" /></label>
-                  <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="N" /></label>
+                  <label>
+                    ${uiLabelMap.CommonYes}
+                    <input type="radio" name="SEARCH_SUB_CATEGORIES" value="Y" checked="checked"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonNo}<input type="radio" name="SEARCH_SUB_CATEGORIES" value="N"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonInclude}
+                    <input type="radio" name="SEARCH_CATEGORY_EXC" value="" checked="checked"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="Y"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_CATEGORY_EXC" value="N"/>
+                  </label>
                 </div>
               </td>
             </tr>
@@ -155,7 +200,8 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_PRODUCT_NAME" size="20" value="${requestParameters.SEARCH_PRODUCT_NAME!}" />
+                <input type="text" name="SEARCH_PRODUCT_NAME" size="20"
+                    value="${requestParameters.SEARCH_PRODUCT_NAME!}"/>
               </div>
             </td>
           </tr>
@@ -165,7 +211,8 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_INTERNAL_PROD_NAME" size="20" value="${requestParameters.SEARCH_INTERNAL_PROD_NAME!}" />
+                <input type="text" name="SEARCH_INTERNAL_PROD_NAME" size="20"
+                    value="${requestParameters.SEARCH_INTERNAL_PROD_NAME!}"/>
               </div>
             </td>
           </tr>
@@ -175,9 +222,17 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}" />&nbsp;
-                <label>${uiLabelMap.CommonAny}<input type="radio" name="SEARCH_OPERATOR" value="OR" <#if searchOperator == "OR">checked="checked"</#if> /></label>
-                <label>${uiLabelMap.CommonAll}<input type="radio" name="SEARCH_OPERATOR" value="AND" <#if searchOperator == "AND">checked="checked"</#if> /></label>
+                <input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonAny}
+                  <input type="radio" name="SEARCH_OPERATOR"
+                      value="OR" <#if searchOperator == "OR">checked="checked"</#if>/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAll}
+                  <input type="radio" name="SEARCH_OPERATOR"
+                      value="AND" <#if searchOperator == "AND">checked="checked"</#if>/>
+                </label>
               </div>
             </td>
           </tr>
@@ -187,22 +242,51 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_CAT1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT1!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_CAT1" size="15"
+                    value="${requestParameters.SEARCH_PROD_FEAT_CAT1!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC1" value="N"/>
+                </label>
               </div>
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_CAT2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT2!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_CAT2" size="15"
+                    value="${requestParameters.SEARCH_PR23OD_FEAT_CAT2!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value=""
+                      checked="checked"/></label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="Y"/></label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC2" value="N"/>
+                </label>
               </div>
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_CAT3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_CAT3!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_CAT3" size="15"
+                    value="${requestParameters.SEARCH_PROD_FEAT_CAT3!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_CAT_EXC3" value="N"/>
+                </label>
               </div>
             </td>
           </tr>
@@ -212,22 +296,52 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_GRP1" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP1!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_GRP1" size="15"
+                    value="${requestParameters.SEARCH_PROD_FEAT_GRP1!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC1" value="N"/>
+                </label>
               </div>
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_GRP2" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP2!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_GRP2" size="15"
+                    value="${requestParameters.SEARCH_PROD_FEAT_GRP2!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC2" value="N"/>
+                </label>
               </div>
               <div>
-                <input type="text" name="SEARCH_PROD_FEAT_GRP3" size="15" value="${requestParameters.SEARCH_PROD_FEAT_GRP3!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="N" /></label>
+                <input type="text" name="SEARCH_PROD_FEAT_GRP3" size="15"
+                    value="${requestParameters.SEARCH_PROD_FEAT_GRP3!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}
+                  <input type="radio" name="SEARCH_PROD_FEAT_GRP_EXC3" value="N"/>
+                </label>
               </div>
             </td>
           </tr>
@@ -237,22 +351,33 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="SEARCH_FEAT1" size="15" value="${requestParameters.SEARCH_FEAT1!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="N" /></label>
+                <input type="text" name="SEARCH_FEAT1" size="15" value="${requestParameters.SEARCH_FEAT1!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}
+                  <input type="radio" name="SEARCH_FEAT_EXC1" value="" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="Y"/>
+                </label>
+                <label>
+                  ${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC1" value="N"/>
+                </label>
               </div>
               <div>
-                <input type="text" name="SEARCH_FEAT2" size="15" value="${requestParameters.SEARCH_FEAT2!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="N" /></label>
+                <input type="text" name="SEARCH_FEAT2" size="15" value="${requestParameters.SEARCH_FEAT2!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="" checked="checked"/>
+                </label>
+                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="Y"/></label>
+                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC2" value="N"/></label>
               </div>
               <div>
-                <input type="text" name="SEARCH_FEAT3" size="15" value="${requestParameters.SEARCH_FEAT3!}" />&nbsp;
-                <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="" checked="checked" /></label>
-                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="Y" /></label>
-                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="N" /></label>
+                <input type="text" name="SEARCH_FEAT3" size="15" value="${requestParameters.SEARCH_FEAT3!}"/>&nbsp;
+                <label>
+                  ${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="" checked="checked"/>
+                </label>
+                <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="Y"/></label>
+                <label>${uiLabelMap.CommonAlwaysInclude}<input type="radio" name="SEARCH_FEAT_EXC3" value="N"/></label>
               </div>
             </td>
           </tr>
@@ -262,13 +387,15 @@
             </td>
             <td valign="middle">
               <div>
-                <input type="text" name="LIST_PRICE_LOW" size="8" value="${requestParameters.LIST_PRICE_LOW!}" />&nbsp;
-                <input type="text" name="LIST_PRICE_HIGH" size="8" value="${requestParameters.LIST_PRICE_HIGH!}" />&nbsp;
+                <input type="text" name="LIST_PRICE_LOW" size="8" value="${requestParameters.LIST_PRICE_LOW!}"/>&nbsp;
+                <input type="text" name="LIST_PRICE_HIGH"
+                    size="8" value="${requestParameters.LIST_PRICE_HIGH!}"/>&nbsp;
               </div>
             </td>
           </tr>
           <#list productFeatureTypeIdsOrdered as productFeatureTypeId>
-            <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId) />
+            <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap(
+                "productFeatureTypeId", productFeatureTypeId) />
             <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true) />
             <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId] />
             <tr>
@@ -280,7 +407,10 @@
                   <select name="pft_${productFeatureTypeId}">
                     <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
                     <#list productFeatures as productFeature>
-                      <option value="${productFeature.productFeatureId}">${productFeature.description?default("${uiLabelMap.ProductNoDescription}")} [${productFeature.productFeatureId}]</option>
+                      <option value="${productFeature.productFeatureId}">
+                        ${productFeature.description?default("${uiLabelMap.ProductNoDescription}")}
+                        [${productFeature.productFeatureId}]
+                      </option>
                     </#list>
                   </select>
                 </div>
@@ -296,7 +426,10 @@
                 <select name="SEARCH_SUPPLIER_ID">
                   <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
                   <#list supplerPartyRoleAndPartyDetails as supplerPartyRoleAndPartyDetail>
-                    <option value="${supplerPartyRoleAndPartyDetail.partyId}">${supplerPartyRoleAndPartyDetail.groupName!} ${supplerPartyRoleAndPartyDetail.firstName!} ${supplerPartyRoleAndPartyDetail.lastName!} [${supplerPartyRoleAndPartyDetail.partyId}]</option>
+                    <option value="${supplerPartyRoleAndPartyDetail.partyId}">
+                      ${supplerPartyRoleAndPartyDetail.groupName!} ${supplerPartyRoleAndPartyDetail.firstName!}
+                      ${supplerPartyRoleAndPartyDetail.lastName!} [${supplerPartyRoleAndPartyDetail.partyId}]
+                    </option>
                   </#list>
                 </select>
               </div>
@@ -312,7 +445,9 @@
                   <option value="SortKeywordRelevancy">${uiLabelMap.ProductKeywordRelevancy}</option>
                   <option value="SortProductField:productName">${uiLabelMap.ProductProductName}</option>
                   <option value="SortProductField:internalName">${uiLabelMap.ProductInternalName}</option>
-                  <option value="SortProductField:totalQuantityOrdered">${uiLabelMap.ProductPopularityByOrders}</option>
+                  <option value="SortProductField:totalQuantityOrdered">
+                    ${uiLabelMap.ProductPopularityByOrders}
+                  </option>
                   <option value="SortProductField:totalTimesViewed">${uiLabelMap.ProductPopularityByViews}</option>
                   <option value="SortProductField:averageCustomerRating">${uiLabelMap.ProductCustomerRating}</option>
                   <option value="SortProductPrice:LIST_PRICE">${uiLabelMap.ProductListPrice}</option>
@@ -321,8 +456,12 @@
                   <option value="SortProductPrice:MINIMUM_PRICE">${uiLabelMap.ProductMinimumPrice}</option>
                   <option value="SortProductPrice:MAXIMUM_PRICE">${uiLabelMap.ProductMaximumPrice}</option>
                 </select>
-                <label>${uiLabelMap.ProductLowToHigh}<input type="radio" name="sortAscending" value="Y" checked="checked" /></label>
-                <label>${uiLabelMap.ProductHighToLow}<input type="radio" name="sortAscending" value="N" /></label>
+                <label>
+                  ${uiLabelMap.ProductLowToHigh}<input type="radio" name="sortAscending" value="Y" checked="checked"/>
+                </label>
+                <label>
+                  ${uiLabelMap.ProductHighToLow}<input type="radio" name="sortAscending" value="N"/>
+                </label>
               </div>
             </td>
           </tr>
@@ -331,7 +470,9 @@
               ${uiLabelMap.ProductPrioritizeProductsInCategory}:
             </td>
             <td valign="middle">
-              <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}" formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/>
+              <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}"
+                  formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID"
+                  fieldFormName="LookupProductCategory"/>
             </td>
           </tr>
           <tr>
@@ -342,7 +483,10 @@
               <select name="SEARCH_GOOD_IDENTIFICATION_TYPE">
                 <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
                 <#list goodIdentificationTypes as goodIdentificationType>
-                  <option value="${goodIdentificationType.goodIdentificationTypeId}">${goodIdentificationType.get("description")!}</option>
+                  <option
+                      value="${goodIdentificationType.goodIdentificationTypeId}">
+                    ${goodIdentificationType.get("description")!}
+                  </option>
                 </#list>
               </select>
             </td>
@@ -352,9 +496,16 @@
               ${uiLabelMap.ProductGoodIdentificationValue}:
             </td>
             <td>
-              <input type="text" name="SEARCH_GOOD_IDENTIFICATION_VALUE" size="60" maxlength="60" value="${requestParameters.SEARCH_GOOD_IDENTIFICATION_VALUE!}" />
-              <label>${uiLabelMap.CommonInclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="Y" checked="checked" /></label>
-              <label>${uiLabelMap.CommonExclude}<input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="N" /></label>
+              <input type="text" name="SEARCH_GOOD_IDENTIFICATION_VALUE" size="60" maxlength="60"
+                  value="${requestParameters.SEARCH_GOOD_IDENTIFICATION_VALUE!}"/>
+              <label>
+                ${uiLabelMap.CommonInclude}
+                <input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="Y" checked="checked"/>
+              </label>
+              <label>
+                ${uiLabelMap.CommonExclude}
+                <input type="radio" name="SEARCH_GOOD_IDENTIFICATION_INCL" value="N"/>
+              </label>
             </td>
           </tr>
           <#if searchConstraintStrings?has_content>
@@ -368,8 +519,13 @@
                 </#list>
                 <span class="label">${uiLabelMap.CommonSortedBy}:</span>${searchSortOrderString}
                 <div>
-                  <label>${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked" /></label>
-                  <label>${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N" /></label>
+                  <label>
+                    ${uiLabelMap.ProductNewSearch}
+                    <input type="radio" name="clearSearch" value="Y" checked="checked"/>
+                  </label>
+                  <label>
+                    ${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N"/>
+                  </label>
                 </div>
               </td>
             </tr>
@@ -376,7 +532,7 @@
           </#if>
           <tr>
             <td align="center" colspan="2">
-              <hr />
+              <hr/>
               <a href="javascript:submit('advToKeywordSearchform');" class="buttontext">${uiLabelMap.CommonFind}</a>
             </td>
           </tr>
Index: specialpurpose/ebay/template/find/EbayExportLink.ftl
===================================================================
--- specialpurpose/ebay/template/find/EbayExportLink.ftl	(revision 1761125)
+++ specialpurpose/ebay/template/find/EbayExportLink.ftl	(working copy)
@@ -29,11 +29,11 @@
 </script>
 
 <#if productIds?has_content>
-    <table cellspacing="0" class="basic-table">
-        <tr>
-            <td align="center" colspan="2">
-                <a href="javascript:exportToEbay();" class="buttontext">${uiLabelMap.EbayExportToEbay}</a>
-            </td>
-        </tr>
-    </table>
+  <table cellspacing="0" class="basic-table">
+    <tr>
+      <td align="center" colspan="2">
+        <a href="javascript:exportToEbay();" class="buttontext">${uiLabelMap.EbayExportToEbay}</a>
+      </td>
+    </tr>
+  </table>
 </#if>
\ No newline at end of file
Index: specialpurpose/ebay/template/find/EbayKeywordSearch.ftl
===================================================================
--- specialpurpose/ebay/template/find/EbayKeywordSearch.ftl	(revision 1761125)
+++ specialpurpose/ebay/template/find/EbayKeywordSearch.ftl	(working copy)
@@ -22,10 +22,17 @@
   </div>
   <div class="screenlet-body">
     <#list searchConstraintStrings as searchConstraintString>
-      <div><a href="<@ofbizUrl>keywordsearch?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N</@ofbizUrl>" class="buttontext">X</a>${searchConstraintString}</div>
+      <div>
+        <a href="<@ofbizUrl>keywordsearch?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N</@ofbizUrl>"
+            class="buttontext">X</a>
+        ${searchConstraintString}
+      </div>
     </#list>
     <span class="label">${uiLabelMap.CommonSortedBy}:</span>${searchSortOrderString}
-    <div><a href="<@ofbizUrl>advancedsearch?SEARCH_CATEGORY_ID=${(requestParameters.SEARCH_CATEGORY_ID)!}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRefineSearch}</a></div>
+    <div>
+      <a href="<@ofbizUrl>advancedsearch?SEARCH_CATEGORY_ID=${(requestParameters.SEARCH_CATEGORY_ID)!}</@ofbizUrl>"
+          class="buttontext">${uiLabelMap.CommonRefineSearch}</a>
+    </div>
 
     <#if !productIds?has_content>
       <div><h2>${uiLabelMap.ProductNoResultsFound}.</h2></div>
@@ -52,22 +59,29 @@
       </script>
       <#macro paginationPanel>
         <div class="clearfix">
-          <div class="lefthalf margin-left"><input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);"/> <strong>${uiLabelMap.ProductProduct}</strong></div>
+          <div class="lefthalf margin-left">
+            <input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);"/>
+            <strong>${uiLabelMap.ProductProduct}</strong>
+          </div>
           <div class="right">
             <strong>
               <#if 0 &lt; viewIndex?int>
-                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex-1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
+                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex-1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>"
+                    class="buttontext">${uiLabelMap.CommonPrevious}</a> |
               </#if>
               <#if 0 &lt; listSize?int>
                 ${lowIndex+1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}
               </#if>
               <#if highIndex?int &lt; listSize?int>
-                | <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex+1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
+                | <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=${viewIndex+1}/~VIEW_SIZE=${viewSize}/~clearSearch=N/~PAGING=${paging}/~noConditionFind=${noConditionFind}</@ofbizUrl>"
+                    class="buttontext">${uiLabelMap.CommonNext}</a>
               </#if>
               <#if paging == "Y">
-                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=99999/~clearSearch=N/~PAGING=N/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPagingOff}</a>
+                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=99999/~clearSearch=N/~PAGING=N/~noConditionFind=${noConditionFind}</@ofbizUrl>"
+                    class="buttontext">${uiLabelMap.CommonPagingOff}</a>
               <#else>
-                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=${previousViewSize}/~clearSearch=N/~PAGING=Y/~noConditionFind=${noConditionFind}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPagingOn}</a>
+                <a href="<@ofbizUrl>keywordsearch/~VIEW_INDEX=0/~VIEW_SIZE=${previousViewSize}/~clearSearch=N/~PAGING=Y/~noConditionFind=${noConditionFind}</@ofbizUrl>"
+                    class="buttontext">${uiLabelMap.CommonPagingOn}</a>
               </#if>
             </strong>
           </div>
@@ -87,7 +101,8 @@
               <tr <#if altRow> class="alternate-row"</#if>>
                 <td>
                   <input type="checkbox" name="selectResult" value="${productId}"/>
-                  <a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>" class="buttontext">[${productId}] ${(product.internalName)!}</a>
+                  <a href="<@ofbizUrl>EditProduct?productId=${productId}</@ofbizUrl>"
+                      class="buttontext">[${productId}] ${(product.internalName)!}</a>
                 </td>
               </tr>
             </#list>
Index: specialpurpose/ebay/template/find/ProductsExportToEbay.ftl
===================================================================
--- specialpurpose/ebay/template/find/ProductsExportToEbay.ftl	(revision 1761125)
+++ specialpurpose/ebay/template/find/ProductsExportToEbay.ftl	(working copy)
@@ -17,10 +17,11 @@
 under the License.
 -->
 <script language="JavaScript" type="text/javascript">
-     function changeEbayCategory(categ) {
-         document.forms["ProductsExportToEbay"].action = "<@ofbizUrl>ProductsExportToEbay?categoryCode="+categ+"</@ofbizUrl>";
-         document.forms["ProductsExportToEbay"].submit();
-     }
+    function changeEbayCategory(categ) {
+        document.forms["ProductsExportToEbay"].action =
+                "<@ofbizUrl>ProductsExportToEbay?categoryCode="+categ+"</@ofbizUrl>";
+        document.forms["ProductsExportToEbay"].submit();
+    }
 
     function changeWebSite(Id) {
         var formId = Id ;
@@ -28,171 +29,218 @@
         formId.submit();
     }
 
-     function activateSubmitButton() {
-         categ = document.forms["ProductsExportToEbay"].ebayCategory.value;
-         if (document.forms["ProductsExportToEbay"].submitButton) {
-             if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) {
-                 document.forms["ProductsExportToEbay"].submitButton.disabled = false;
-             } else {
-                 document.forms["ProductsExportToEbay"].submitButton.disabled = true;
-                 document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category";
-             }
-         }
+    function activateSubmitButton() {
+        categ = document.forms["ProductsExportToEbay"].ebayCategory.value;
+        if (document.forms["ProductsExportToEbay"].submitButton) {
+            if (categ != null && (categ.substring(0, 1) == 'Y' || categ == '')) {
+                document.forms["ProductsExportToEbay"].submitButton.disabled = false;
+            } else {
+                document.forms["ProductsExportToEbay"].submitButton.disabled = true;
+                document.forms["ProductsExportToEbay"].submitButton.value = "Please select a category";
+            }
+        }
     }
 </script>
 <div>
-    <form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>PostProductsToEbay</@ofbizUrl>" name="ProductsExportToEbay">
-        <input type="hidden" name="productStoreId" value="${productStoreId!}" />
-        <table border="0" cellpadding="2" cellspacing="0">
-             <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_ebayCategory}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="hidden" name="selectResult" value="${selectResult!}"/>
-                    <select name="ebayCategory" onchange="changeEbayCategory(this.value)">
-                        <option value=""> </option>
-                        <#if categories??>
-                            <#list categories as category>
-                                <option value="${category.CategoryCode}" <#if categoryCode?? && categoryCode == category.CategoryCode>selected="selected"</#if>>${category.CategoryName}</option>
-                            </#list>
-                        </#if>
-                    </select>
+  <form id="ProductsExportToEbay" method="post" action="<@ofbizUrl>PostProductsToEbay</@ofbizUrl>"
+      name="ProductsExportToEbay">
+    <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
+    <table border="0" cellpadding="2" cellspacing="0">
+      <tr>
+        <td align="right" class="label">${uiLabelMap.FormFieldTitle_ebayCategory}</td>
+        <td>&nbsp;</td>
+        <td>
+          <input type="hidden" name="selectResult" value="${selectResult!}"/>
+          <select name="ebayCategory" onchange="changeEbayCategory(this.value)">
+            <option value=""></option>
+            <#if categories??>
+              <#list categories as category>
+                <option value="${category.CategoryCode}"
+                    <#if categoryCode?? && categoryCode == category.CategoryCode>selected="selected"</#if>>
+                  ${category.CategoryName}
+                </option>
+              </#list>
+            </#if>
+          </select>
+        </td>
+      </tr>
+      <#if hideExportOptions?has_content && hideExportOptions == "N">
+        <tr>
+          <td align="right" class="label">${uiLabelMap.CommonCountry}</td>
+          <td>&nbsp;</td>
+          <td>
+            <select name="country">
+              <#if countries??>
+                <#list countries as country>
+                  <option value="${country.geoCode}"
+                      <#if countryCode?? && countryCode == country.geoCode>selected="selected"</#if>>
+                    ${country.get("geoName",locale)}
+                  </option>
+                </#list>
+              </#if>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_location}</td>
+          <td>&nbsp;</td>
+          <td>
+            <input type="text" name="location" size="50" maxlength="50" value="${parameters.location!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_listingDuration}</td>
+          <td>&nbsp;</td>
+          <td>
+            <select name="listingDuration">
+              <option value="Days_1">1 ${uiLabelMap.CommonDay}</option>
+              <option value="Days_3">3 ${uiLabelMap.CommonDays}</option>
+              <option value="Days_7">7 ${uiLabelMap.CommonDays}</option>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_startPrice}</td>
+          <td>&nbsp;</td>
+          <td>
+            <input type="text" name="startPrice" size="12" maxlength="12" value="${parameters.startPrice!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.CommonQuantity}</td>
+          <td>&nbsp;</td>
+          <td>
+            <input type="text" name="quantity" size="12" maxlength="12"
+                value="<#if parameters.quantity??>${parameters.quantity!}<#else>1</#if>"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.CommonWebsite}</td>
+          <td>&nbsp;</td>
+          <td>
+            <select name="webSiteId"
+                onchange="javascript:changeWebSite(document.getElementById('ProductsExportToEbay'));">
+              <#list webSiteList as webSite>
+                <#assign displayDesc = webSite.siteName?default("${uiLabelMap.ProductNoDescription}")>
+                <#if (18 < displayDesc?length)>
+                  <#assign displayDesc = displayDesc[0..15] + "...">
+                </#if>
+                  <option value="${webSite.webSiteId}" <#if selectedWebSiteId! == webSite.webSiteId>
+                      selected="selected"</#if>>
+                    ${displayDesc} [${webSite.webSiteId}]
+                  </option>
+              </#list>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_webSiteUrl}</td>
+          <td>&nbsp;</td>
+          <td>
+            <input type="text" name="webSiteUrl" size="100" value="${webSiteUrl!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="center" colspan="3"><b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b></td>
+        </tr>
+        <tr>
+          <td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td colspan="3">
+            <table class="basic-table" cellspacing="0">
+              <tr>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPayPal}</td>
+                <td width="2%">
+                  <input type="checkbox" name="paymentPayPal" <#if parameters.paymentPayPal??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <#if hideExportOptions?has_content && hideExportOptions == "N">
-            <tr>
-                <td align="right" class="label">${uiLabelMap.CommonCountry}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <select name="country">
-                        <#if countries??>
-                            <#list countries as country>
-                                <option value="${country.geoCode}" <#if countryCode?? && countryCode == country.geoCode>selected="selected"</#if>>${country.get("geoName",locale)}</option>
-                            </#list>
-                        </#if>
-                    </select>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentVisaMC}</td>
+                <td width="2%">
+                  <input type="checkbox" name="paymentVisaMC" <#if parameters.paymentVisaMC??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_location}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="text" name="location" size="50" maxlength="50" value="${parameters.location!}" />
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentAmEx}</td>
+                <td width="2%">
+                  <input type="checkbox" name="paymentAmEx" <#if parameters.paymentAmEx??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_listingDuration}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <select name="listingDuration">
-                        <option value="Days_1">1 ${uiLabelMap.CommonDay}</option>
-                        <option value="Days_3">3 ${uiLabelMap.CommonDays}</option>
-                        <option value="Days_7">7 ${uiLabelMap.CommonDays}</option>
-                    </select>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentDiscover}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentDiscover" <#if parameters.paymentDiscover??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_startPrice}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="text" name="startPrice" size="12" maxlength="12" value="${parameters.startPrice!}" />
+              </tr>
+              <tr>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMOCC}</td>
+                <td width="2%">
+                  <input type="checkbox" name="paymentMOCC" <#if parameters.paymentMOCC??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.CommonQuantity}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="text" name="quantity" size="12" maxlength="12" value="<#if parameters.quantity??>${parameters.quantity!}<#else>1</#if>" />
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPersonalCheck}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentPersonalCheck" <#if parameters.paymentPersonalCheck??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.CommonWebsite}</td>
-                <td>&nbsp;</td>
-                <td>
-                  <select name="webSiteId" onchange="javascript:changeWebSite(document.getElementById('ProductsExportToEbay'));">
-                    <#list webSiteList as webSite>
-                      <#assign displayDesc = webSite.siteName?default("${uiLabelMap.ProductNoDescription}")>
-                      <#if (18 < displayDesc?length)>
-                        <#assign displayDesc = displayDesc[0..15] + "...">
-                      </#if>
-                      <option value="${webSite.webSiteId}" <#if selectedWebSiteId! == webSite.webSiteId> selected="selected"</#if>>${displayDesc} [${webSite.webSiteId}]</option>
-                    </#list>
-                  </select>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCCAccepted}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentCCAccepted" <#if parameters.paymentCCAccepted??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_webSiteUrl}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="text" name="webSiteUrl" size="100" value="${webSiteUrl!}"/>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashInPerson}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentCashInPerson" <#if parameters.paymentCashInPerson??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="center" colspan="3"><b><u>${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}</u></b></td>
-            </tr>
-            <tr>
-                <td>&nbsp;</td>
-            </tr>
-            <tr>
-                <td colspan="3">
-                    <table class="basic-table" cellspacing="0">
-                        <tr>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPayPal}</td>
-                            <td width="2%"><input type="checkbox" name="paymentPayPal" <#if parameters.paymentPayPal??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentVisaMC}</td>
-                            <td width="2%"><input type="checkbox" name="paymentVisaMC" <#if parameters.paymentVisaMC??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentAmEx}</td>
-                            <td width="2%"><input type="checkbox" name="paymentAmEx" <#if parameters.paymentAmEx??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentDiscover}</td>
-                            <td width="2%"><input type="checkbox" name="paymentDiscover" <#if parameters.paymentDiscover??>checked="checked"</#if> /></td>
-                        </tr>
-                        <tr>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMOCC}</td>
-                            <td width="2%"><input type="checkbox" name="paymentMOCC" <#if parameters.paymentMOCC??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentPersonalCheck}</td>
-                            <td width="2%"><input type="checkbox" name="paymentPersonalCheck" <#if parameters.paymentPersonalCheck??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCCAccepted}</td>
-                            <td width="2%"><input type="checkbox" name="paymentCCAccepted" <#if parameters.paymentCCAccepted??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashInPerson}</td>
-                            <td width="2%"><input type="checkbox" name="paymentCashInPerson" <#if parameters.paymentCashInPerson??>checked="checked"</#if> /></td>
-                        </tr>
-                        <tr>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashOnPickup}</td>
-                            <td width="2%"><input type="checkbox" name="paymentCashOnPickup" <#if parameters.paymentCashOnPickup??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCOD}</td>
-                            <td width="2%"><input type="checkbox" name="paymentCOD" <#if parameters.paymentCOD??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery}</td>
-                            <td width="2%"><input type="checkbox" name="paymentCODPrePayDelivery" <#if parameters.paymentCODPrePayDelivery??>checked="checked"</#if> /></td>
-                            <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted}</td>
-                            <td width="2%"><input type="checkbox" name="paymentMoneyXferAccepted" <#if parameters.paymentMoneyXferAccepted??>checked="checked"</#if> /></td>
-                        </tr>
-                    </table>
+              </tr>
+              <tr>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCashOnPickup}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentCashOnPickup" <#if parameters.paymentCashOnPickup??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <input type="text" name="payPalEmail" size="50" maxlength="50" value="${parameters.payPalEmail!}" />
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentCOD}</td>
+                <td width="2%">
+                  <input type="checkbox" name="paymentCOD" <#if parameters.paymentCOD??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            <tr>
-                <td align="right" class="label">${uiLabelMap.FormFieldTitle_customXml}</td>
-                <td>&nbsp;</td>
-                <td>
-                    <textarea cols="60" rows="6" wrap="soft" name="customXml">${customXml!}</textarea>
+                <td align="right" width="23%" class="label">
+                  ${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery}
                 </td>
-            </tr>
-            <tr>
-                <td colspan=2>&nbsp;</td>
-                <td>
-                    <input type="submit" value="${uiLabelMap.EbayExportToEbay}" name="submitButton" class="smallSubmit" />
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentCODPrePayDelivery"
+                      <#if parameters.paymentCODPrePayDelivery??>checked="checked"</#if>/>
                 </td>
-            </tr>
-            </#if>
-        </table>
-    </form>
-    <script language="JavaScript" type="text/javascript">
-        activateSubmitButton();
-    </script>
+                <td align="right" width="23%" class="label">${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted}</td>
+                <td width="2%">
+                  <input type="checkbox"
+                      name="paymentMoneyXferAccepted"
+                      <#if parameters.paymentMoneyXferAccepted??>checked="checked"</#if>/>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_payPalEmail}</td>
+          <td>&nbsp;</td>
+          <td>
+            <input type="text" name="payPalEmail" size="50" maxlength="50" value="${parameters.payPalEmail!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right" class="label">${uiLabelMap.FormFieldTitle_customXml}</td>
+          <td>&nbsp;</td>
+          <td>
+            <textarea cols="60" rows="6" wrap="soft" name="customXml">${customXml!}</textarea>
+          </td>
+        </tr>
+        <tr>
+          <td colspan=2>&nbsp;</td>
+          <td>
+            <input type="submit" value="${uiLabelMap.EbayExportToEbay}" name="submitButton" class="smallSubmit"/>
+          </td>
+        </tr>
+      </#if>
+    </table>
+  </form>
+  <script language="JavaScript" type="text/javascript">
+      activateSubmitButton();
+  </script>
 </div>
Index: specialpurpose/ecommerce/template/blog/BlogContentAltLink.ftl
===================================================================
--- specialpurpose/ecommerce/template/blog/BlogContentAltLink.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/blog/BlogContentAltLink.ftl	(working copy)
@@ -17,5 +17,7 @@
 under the License.
 -->
 
-<a href="<@OfbizContentAltUrl contentId=blog.contentId viewContent='ViewBlogArticle'/>" >${blog.contentName} [${blog.contentId}]</a>
+<a href="<@OfbizContentAltUrl contentId=blog.contentId viewContent='ViewBlogArticle'/>" >
+  ${blog.contentName} [${blog.contentId}]
+</a>
 
Index: specialpurpose/ecommerce/template/blog/Blogs.ftl
===================================================================
--- specialpurpose/ecommerce/template/blog/Blogs.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/blog/Blogs.ftl	(working copy)
@@ -28,7 +28,9 @@
     <ul class="browsecategorylist">
       <#list blogs as blog>
         <li class="browsecategorytext">
-          <a href="<@ofbizUrl>MainBlog?blogContentId=${blog.contentId}</@ofbizUrl>" class="browsecategorybutton">${blog.contentName!}</a>
+          <a href="<@ofbizUrl>MainBlog?blogContentId=${blog.contentId}</@ofbizUrl>" class="browsecategorybutton">
+            ${blog.contentName!}
+          </a>
         </li>
       </#list>
     </ul>
Index: specialpurpose/ecommerce/template/blog/TextImage.ftl
===================================================================
--- specialpurpose/ecommerce/template/blog/TextImage.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/blog/TextImage.ftl	(working copy)
@@ -26,13 +26,14 @@
 <#-- This code sets the checkboxes based on existing data -->
 <#assign text_check=""/>
 <#assign img_check=""/>
-<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED") || drMimeTypeId?default("")?starts_with("image"))>
-    <#assign img_check="checked='checked'"/>
+<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED")
+    || drMimeTypeId?default("")?starts_with("image"))>
+  <#assign img_check="checked='checked'"/>
 </#if>
 <#if (textContent?has_content && drMimeTypeId?default("")?starts_with("text"))
-        || (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED"))
-        || !img_check?has_content>
-    <#assign text_check="checked='checked'"/>
+    || (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED"))
+    || !img_check?has_content>
+  <#assign text_check="checked='checked'"/>
 </#if>
 
 <#-- Sets one of the two templates -->
@@ -39,17 +40,17 @@
 <#assign topleft_check=""/>
 <#assign topcenter_check=""/>
 <#if view.drDataResourceId?has_content && view.drDataResourceId == "BLOG_TPL_TOPLEFT">
-    <#assign topleft_check="checked='checked'"/>
+  <#assign topleft_check="checked='checked'"/>
 <#else>
-    <#assign topcenter_check="checked='checked'"/>
+  <#assign topcenter_check="checked='checked'"/>
 </#if>
 
 <#-- Fills in existing text -->
 <#assign textData=""/>
 <#if electronicText?has_content >
-    <#if electronicText.textData?has_content >
-        <#assign textData=electronicText.textData/>
-    </#if>
+  <#if electronicText.textData?has_content >
+    <#assign textData=electronicText.textData/>
+  </#if>
 </#if>
 
 <#-- Stores the ids for existing data -->
@@ -57,12 +58,12 @@
 <#assign textDataResourceId=""/>
 
 <#if textContent?has_content >
-    <#assign textContentId=textContent.contentId!/>
-    <#assign textDataResourceId=textContent.drDataResourceId!/>
+  <#assign textContentId=textContent.contentId!/>
+  <#assign textDataResourceId=textContent.drDataResourceId!/>
 </#if>
 
 <#if textElectronicText?has_content && textElectronicText.textData?has_content >
-    <#assign textData=textElectronicText.textData/>
+  <#assign textData=textElectronicText.textData/>
 </#if>
 
 <#assign imageContentId=""/>
@@ -69,8 +70,8 @@
 <#assign imageDataResourceId=""/>
 
 <#if imageContent?has_content >
-    <#assign imageContentId=imageContent.contentId!/>
-    <#assign imageDataResourceId=imageContent.drDataResourceId!/>
+  <#assign imageContentId=imageContent.contentId!/>
+  <#assign imageDataResourceId=imageContent.drDataResourceId!/>
 </#if>
 
 <input type="hidden" name="textContentId" value="${textContentId}"/>
@@ -79,45 +80,56 @@
 <input type="hidden" name="imageDataResourceId" value="${imageDataResourceId}"/>
 
 <table>
-    <tr>
-        <td width="10%" align="right">
-        <span class="treeHeader"> </span>
-        </td>
-        <td>&nbsp;</td>
-        <td width="5%" valign="top">
-        <div class="inputBox"><input type="checkBox" ${text_check} name="drMimeTypeId_TEXT" value="Y"/>Text</div>
-        </td>
-        <td>&nbsp;</td>
-        <td width="60%">
-        <textarea class="textAreaBox" class="inputBox" name="textData" cols="60" rows="24">${textData!}</textarea>
-        </td>
-        <td width="10%" align="right">
-        <span class="treeHeader"> </span>
-        </td>
-    </tr>
-
-    <tr>
-        <td width="10%" align="right">
-            <span class="treeHeader"> </span>
-        </td>
-        <td>&nbsp;</td>
-        <td width="5%" valign="top">
-            <div class="inputBox"><input type="checkbox" ${img_check} name="drMimeTypeId_IMAGE" value="Y"/>Image</div>
-        </td>
-        <td>&nbsp;</td>
-        <td width="60%">
-            <div class="inputBox">Existing file name:  <#if imageContent?has_content && imageContent.drObjectInfo?has_content>${imageContent.drObjectInfo}</#if></div>
-            <br />
-            <input type="file" class="inputBox" name="uploadedFile" size="25"/>
-            <#--
-            Force: <input type="checkbox" value="true" name="forceElectronicText"/>
-            -->
-            <br />
-            Top-left:<input type="radio" ${topleft_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPLEFT"/>
-            &nbsp;Top-center:<input type="radio" ${topcenter_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPCENTER"/>
-        </td>
-        <td width="10%" align="right">
-            <span class="treeHeader">&nbsp;</span>
-        </td>
-    </tr>
+  <tr>
+    <td width="10%" align="right">
+      <span class="treeHeader"> </span>
+    </td>
+    <td>&nbsp;</td>
+    <td width="5%" valign="top">
+      <div class="inputBox">
+        <input type="checkBox" ${text_check} name="drMimeTypeId_TEXT" value="Y"/>
+        Text
+      </div>
+    </td>
+    <td>&nbsp;</td>
+    <td width="60%">
+      <textarea class="textAreaBox" class="inputBox" name="textData" cols="60" rows="24">
+        ${textData!}
+      </textarea>
+    </td>
+    <td width="10%" align="right">
+      <span class="treeHeader"> </span>
+    </td>
+  </tr>
+  <tr>
+    <td width="10%" align="right">
+      <span class="treeHeader"> </span>
+    </td>
+    <td>&nbsp;</td>
+    <td width="5%" valign="top">
+      <div class="inputBox"><input type="checkbox" ${img_check} name="drMimeTypeId_IMAGE" value="Y"/>
+        Image
+      </div>
+    </td>
+    <td>&nbsp;</td>
+    <td width="60%">
+      <div class="inputBox">
+        Existing file name:
+        <#if imageContent?has_content && imageContent.drObjectInfo?has_content>
+          ${imageContent.drObjectInfo}
+        </#if>
+      </div>
+      <br />
+      <input type="file" class="inputBox" name="uploadedFile" size="25"/>
+      <#--
+      Force: <input type="checkbox" value="true" name="forceElectronicText"/>
+      -->
+      <br />
+      Top-left:<input type="radio" ${topleft_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPLEFT"/>&nbsp;
+      Top-center:<input type="radio" ${topcenter_check} class="inputBox" name="templateId" value="BLOG_TPL_TOPCENTER"/>
+    </td>
+    <td width="10%" align="right">
+      <span class="treeHeader">&nbsp;</span>
+    </td>
+  </tr>
 </table>
Index: specialpurpose/ecommerce/template/cart/MicroCart.ftl
===================================================================
--- specialpurpose/ecommerce/template/cart/MicroCart.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/cart/MicroCart.ftl	(working copy)
@@ -18,41 +18,66 @@
 -->
 <#assign shoppingCart = sessionAttributes.shoppingCart!>
 <#if shoppingCart?has_content>
-    <#assign shoppingCartSize = shoppingCart.size()>
+  <#assign shoppingCartSize = shoppingCart.size()>
 <#else>
-    <#assign shoppingCartSize = 0>
+  <#assign shoppingCartSize = 0>
 </#if>
 <div id="microcart">
-        <#if (shoppingCartSize > 0)>
-            <p id="microCartNotEmpty">
-                ${uiLabelMap.EcommerceCartHas} <strong id="microCartQuantity">${shoppingCart.getTotalQuantity()}</strong>
-                <#if shoppingCart.getTotalQuantity() == 1>${uiLabelMap.OrderItem}<#else>${uiLabelMap.OrderItems}</#if>,
-                <strong id="microCartTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></strong>
-            </p>
-            <span id="microCartEmpty" style="display:none">${uiLabelMap.OrderShoppingCartEmpty}</span>
+  <#if (shoppingCartSize > 0)>
+    <p id="microCartNotEmpty">
+      ${uiLabelMap.EcommerceCartHas}
+      <strong id="microCartQuantity">
+        ${shoppingCart.getTotalQuantity()}
+      </strong>
+      <#if shoppingCart.getTotalQuantity() == 1>
+        ${uiLabelMap.OrderItem}
+      <#else>
+        ${uiLabelMap.OrderItems}
+      </#if>,
+      <strong id="microCartTotal">
+        <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
+      </strong>
+    </p>
+    <span id="microCartEmpty" style="display:none">${uiLabelMap.OrderShoppingCartEmpty}</span>
+  <#else>
+    <p>${uiLabelMap.OrderShoppingCartEmpty}</p>
+  </#if>
+  <ul>
+    <li>
+      <a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a>
+    </li>
+    <#if (shoppingCartSize > 0)>
+      <#if !initialLocaleComplete?? || initialLocaleComplete?length == 2 >
+        <#if initialLocaleComplete?? && initialLocaleComplete?length == 2  && initialLocaleComplete == "fr">
+          <#assign initialLocaleComplete = "fr_FR"><#-- same idea can be used with other default locale -->
         <#else>
-            <p>${uiLabelMap.OrderShoppingCartEmpty}</p>
+          <#assign initialLocaleComplete = "en_US">
         </#if>
-    <ul>
-      <li><a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a></li>
-      <#if (shoppingCartSize > 0)>
-            <#if !initialLocaleComplete?? || initialLocaleComplete?length == 2 >
-                <#if initialLocaleComplete?? && initialLocaleComplete?length == 2  && initialLocaleComplete == "fr">
-                    <#assign initialLocaleComplete = "fr_FR"><#-- same idea can be used with other default locale --> 
-                <#else>
-                    <#assign initialLocaleComplete = "en_US">
-                </#if>                              
-            </#if>          
-          <li id="quickCheckoutEnabled"><a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a></li>
-          <li id="quickCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
-          <li id="onePageCheckoutEnabled"><a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a></li>
-          <li id="onePageCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
-          <#if shoppingCart?has_content && (shoppingCart.getGrandTotal() > 0)>
-            <li id="microCartPayPalCheckout"><a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>"><img src="https://www.paypal.com/${initialLocaleComplete}/i/btn/btn_xpressCheckout.gif" alt="[PayPal Express Checkout]" onError="this.onerror=null;this.src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif'"/></a></li>
-          </#if>
-      <#else>
-          <li class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
-          <li class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
       </#if>
-    </ul>
+      <li id="quickCheckoutEnabled">
+        <a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a>
+      </li>
+      <li id="quickCheckoutDisabled" style="display:none" class="disabled">
+        [${uiLabelMap.OrderCheckoutQuick}]
+      </li>
+      <li id="onePageCheckoutEnabled">
+        <a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a>
+      </li>
+      <li id="onePageCheckoutDisabled" style="display:none" class="disabled">
+        [${uiLabelMap.EcommerceOnePageCheckout}]
+      </li>
+      <#if shoppingCart?has_content && (shoppingCart.getGrandTotal() > 0)>
+        <li id="microCartPayPalCheckout">
+          <a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>">
+            <img src="https://www.paypal.com/${initialLocaleComplete}/i/btn/btn_xpressCheckout.gif"
+                alt="[PayPal Express Checkout]"
+                onError="this.onerror=null;this.src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif'"/>
+          </a>
+        </li>
+      </#if>
+    <#else>
+      <li class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
+      <li class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
+    </#if>
+  </ul>
 </div>
Index: specialpurpose/ecommerce/template/cart/MiniPromoText.ftl
===================================================================
--- specialpurpose/ecommerce/template/cart/MiniPromoText.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/cart/MiniPromoText.ftl	(working copy)
@@ -18,29 +18,31 @@
 -->
 
 <#if showPromoText>
-<div id="minipromotext" class="screenlet">
-  <div class="screenlet-title-bar">
-    <ul>
-      <li class="h3">${uiLabelMap.OrderSpecialOffers}</li>
-    </ul>
-    <br class="clear"/>
-  </div>
-
-  <div class="screenlet-body">
-  <#-- show promotions text -->
-    <ul>
-      <#list productPromos as productPromo>
+  <div id="minipromotext" class="screenlet">
+    <div class="screenlet-title-bar">
+      <ul>
+        <li class="h3">${uiLabelMap.OrderSpecialOffers}</li>
+      </ul>
+      <br class="clear"/>
+    </div>
+    <div class="screenlet-body">
+      <#-- show promotions text -->
+      <ul>
+        <#list productPromos as productPromo>
+          <li>
+            <p>
+              <a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>"
+                  class="linktext">${uiLabelMap.CommonDetails}</a>
+              ${StringUtil.wrapString(productPromo.promoText!)}
+            </p>
+          </li>
+        </#list>
         <li>
-          <p>
-            <a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>" class="linktext">${uiLabelMap.CommonDetails}</a>
-            ${StringUtil.wrapString(productPromo.promoText!)}
-          </p>
+          <a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">
+            ${uiLabelMap.OrderViewAllPromotions}
+          </a>
         </li>
-      </#list>
-      <li>
-        <a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">${uiLabelMap.OrderViewAllPromotions}</a>
-      </li>
-    </ul>
+      </ul>
     </div>
-</div>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/cart/ShowCart.ftl
===================================================================
--- specialpurpose/ecommerce/template/cart/ShowCart.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/cart/ShowCart.ftl	(working copy)
@@ -17,510 +17,655 @@
 under the License.
 -->
 <script type="text/javascript">
-//<![CDATA[
-function toggle(e) {
-    e.checked = !e.checked;
-}
-function checkToggle(e) {
-    var cform = document.cartform;
-    if (e.checked) {
-        var len = cform.elements.length;
-        var allchecked = true;
-        for (var i = 0; i < len; i++) {
-            var element = cform.elements[i];
-            if (element.name == "selectedItem" && !element.checked) {
-                allchecked = false;
+    //<![CDATA[
+        function toggle(e) {
+            e.checked = !e.checked;
+        }
+        function checkToggle(e) {
+            var cform = document.cartform;
+            if (e.checked) {
+                var len = cform.elements.length;
+                var allchecked = true;
+                for (var i = 0; i < len; i++) {
+                    var element = cform.elements[i];
+                    if (element.name == "selectedItem" && !element.checked) {
+                        allchecked = false;
+                    }
+                    cform.selectAll.checked = allchecked;
+                }
+            } else {
+                cform.selectAll.checked = false;
             }
-            cform.selectAll.checked = allchecked;
         }
-    } else {
-        cform.selectAll.checked = false;
-    }
-}
-function toggleAll(e) {
-    var cform = document.cartform;
-    var len = cform.elements.length;
-    for (var i = 0; i < len; i++) {
-        var element = cform.elements[i];
-        if (element.name == "selectedItem" && element.checked != e.checked) {
-            toggle(element);
+        function toggleAll(e) {
+            var cform = document.cartform;
+            var len = cform.elements.length;
+            for (var i = 0; i < len; i++) {
+                var element = cform.elements[i];
+                if (element.name == "selectedItem" && element.checked != e.checked) {
+                    toggle(element);
+                }
+            }
         }
-    }
-}
-function removeSelected() {
-    var cform = document.cartform;
-    cform.removeSelected.value = true;
-    cform.submit();
-}
-function addToList() {
-    var cform = document.cartform;
-    cform.action = "<@ofbizUrl>addBulkToShoppingList</@ofbizUrl>";
-    cform.submit();
-}
-function gwAll(e) {
-    var cform = document.cartform;
-    var len = cform.elements.length;
-    var selectedValue = e.value;
-    if (selectedValue == "") {
-        return;
-    }
+        function removeSelected() {
+            var cform = document.cartform;
+            cform.removeSelected.value = true;
+            cform.submit();
+        }
+        function addToList() {
+            var cform = document.cartform;
+            cform.action = "<@ofbizUrl>addBulkToShoppingList</@ofbizUrl>";
+            cform.submit();
+        }
+        function gwAll(e) {
+            var cform = document.cartform;
+            var len = cform.elements.length;
+            var selectedValue = e.value;
+            if (selectedValue == "") {
+                return;
+            }
 
-    var cartSize = ${shoppingCartSize};
-    var passed = 0;
-    for (var i = 0; i < len; i++) {
-        var element = cform.elements[i];
-        var ename = element.name;
-        var sname = ename.substring(0,16);
-        if (sname == "option^GIFT_WRAP") {
-            var options = element.options;
-            var olen = options.length;
-            var matching = -1;
-            for (var x = 0; x < olen; x++) {
-                var thisValue = element.options[x].value;
-                if (thisValue == selectedValue) {
-                    element.selectedIndex = x;
-                    passed++;
+            var cartSize = ${shoppingCartSize};
+            var passed = 0;
+            for (var i = 0; i < len; i++) {
+                var element = cform.elements[i];
+                var ename = element.name;
+                var sname = ename.substring(0,16);
+                if (sname == "option^GIFT_WRAP") {
+                    var options = element.options;
+                    var olen = options.length;
+                    var matching = -1;
+                    for (var x = 0; x < olen; x++) {
+                        var thisValue = element.options[x].value;
+                        if (thisValue == selectedValue) {
+                            element.selectedIndex = x;
+                            passed++;
+                        }
+                    }
                 }
             }
+            if (cartSize > passed && selectedValue != "NO^") {
+                showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.EcommerceSelectedGiftWrap}");
+            }
+            cform.submit();
         }
-    }
-    if (cartSize > passed && selectedValue != "NO^") {
-        showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.EcommerceSelectedGiftWrap}");
-    }
-    cform.submit();
-}
-//]]>
+    //]]>
 </script>
 
 <script type="text/javascript">
-//<![CDATA[
-function setAlternateGwp(field) {
-  window.location=field.value;
-};
-//]]>
+    //<![CDATA[
+        function setAlternateGwp(field) {
+            window.location=field.value;
+        };
+    //]]>
 </script>
-<#assign fixedAssetExist = shoppingCart.containAnyWorkEffortCartItems() /> <#-- change display format when rental items exist in the shoppingcart -->
+<#assign fixedAssetExist = shoppingCart.containAnyWorkEffortCartItems() />
+<#-- change display format when rental items exist in the shoppingcart -->
 <div>
-    <h2>
-        <#if ((sessionAttributes.lastViewedProducts)?has_content && sessionAttributes.lastViewedProducts?size > 0)>
-          <#assign continueLink = "/product?product_id=" + sessionAttributes.lastViewedProducts.get(0) />
-        <#else>
-          <#assign continueLink = "/main" />
-        </#if>
-        <a href="<@ofbizUrl>${continueLink}</@ofbizUrl>" class="submenutext">${uiLabelMap.EcommerceContinueShopping}</a>
-        <#if (shoppingCartSize > 0)><a href="<@ofbizUrl>checkoutoptions</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderCheckout}</a><#else><span class="submenutextrightdisabled">${uiLabelMap.OrderCheckout}</span></#if>
-        ${uiLabelMap.CommonQuickAdd}
-    </h2>
+  <h2>
+    <#if ((sessionAttributes.lastViewedProducts)?has_content && sessionAttributes.lastViewedProducts?size > 0)>
+      <#assign continueLink = "/product?product_id=" + sessionAttributes.lastViewedProducts.get(0) />
+    <#else>
+      <#assign continueLink = "/main" />
+    </#if>
+    <a href="<@ofbizUrl>${continueLink}</@ofbizUrl>" class="submenutext">
+      ${uiLabelMap.EcommerceContinueShopping}
+    </a>
+    <#if (shoppingCartSize > 0)>
+      <a href="<@ofbizUrl>checkoutoptions</@ofbizUrl>" class="submenutext">
+        ${uiLabelMap.OrderCheckout}
+      </a>
+    <#else>
+      <span class="submenutextrightdisabled">
+        ${uiLabelMap.OrderCheckout}
+      </span>
+    </#if>
+    ${uiLabelMap.CommonQuickAdd}
+  </h2>
+  <div>
     <div>
-        <div>
-            <form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="quickaddform">
-                <fieldset>
-                ${uiLabelMap.EcommerceProductNumber}<input type="text" class="inputBox" name="add_product_id" value="${requestParameters.add_product_id!}" />
-                <#-- check if rental data present  insert extra fields in Quick Add-->
-                <#if (product?? && product.getString("productTypeId") == "ASSET_USAGE") || (product?? && product.getString("productTypeId") == "ASSET_USAGE_OUT_IN")>
-                    ${uiLabelMap.EcommerceStartDate}: <input type="text" class="inputBox" size="10" name="reservStart" value="${requestParameters.reservStart?default("")}" />
-                    ${uiLabelMap.EcommerceLength}: <input type="text" class="inputBox" size="2" name="reservLength" value="${requestParameters.reservLength?default("")}" />
-                    </div>
-                    <div>
-                    &nbsp;&nbsp;${uiLabelMap.OrderNbrPersons}: <input type="text" class="inputBox" size="3" name="reservPersons" value="${requestParameters.reservPersons?default("1")}" />
-                </#if>
-                ${uiLabelMap.CommonQuantity}: <input type="text" class="inputBox" size="5" name="quantity" value="${requestParameters.quantity?default("1")}" />
-                <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddToCart}" />
-                <#-- <a href="javascript:document.quickaddform.submit()" class="button"><span>[${uiLabelMap.OrderAddToCart}]</span></a> -->
-                </fieldset>
-            </form>
-        </div>
+      <form method="post"
+          action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
+          name="quickaddform">
+        <fieldset>
+          ${uiLabelMap.EcommerceProductNumber}
+          <input type="text" class="inputBox" name="add_product_id" value="${requestParameters.add_product_id!}" />
+          <#-- check if rental data present  insert extra fields in Quick Add-->
+          <#if (product?? && product.getString("productTypeId") == "ASSET_USAGE"
+              ) || (product?? && product.getString("productTypeId") == "ASSET_USAGE_OUT_IN")>
+            ${uiLabelMap.EcommerceStartDate}:
+            <input type="text" class="inputBox" size="10" name="reservStart"
+                value="${requestParameters.reservStart?default("")}" />
+            ${uiLabelMap.EcommerceLength}:
+            <input type="text" class="inputBox" size="2" name="reservLength"
+                value="${requestParameters.reservLength?default("")}" />
+            </div>
+            <div>
+            &nbsp;&nbsp;${uiLabelMap.OrderNbrPersons}:
+            <input type="text" class="inputBox" size="3" name="reservPersons"
+                value="${requestParameters.reservPersons?default("1")}" />
+          </#if>
+          ${uiLabelMap.CommonQuantity}:
+          <input type="text" class="inputBox" size="5" name="quantity"
+              value="${requestParameters.quantity?default("1")}" />
+          <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddToCart}" />
+          <#-- <a href="javascript:document.quickaddform.submit()" class="button">
+                 <span>[${uiLabelMap.OrderAddToCart}]</span>
+               </a> -->
+        </fieldset>
+      </form>
     </div>
+  </div>
 </div>
 
 <script type="text/javascript">
-//<![CDATA[
-  document.quickaddform.add_product_id.focus();
-//]]>
+    //<![CDATA[
+        document.quickaddform.add_product_id.focus();
+    //]]>
 </script>
 
 <div>
+  <div>
     <div>
-        <div>
-            <div class="lightbuttontextdisabled">
-              <#--<a href="<@ofbizUrl>main</@ofbizUrl>" class="lightbuttontext">[${uiLabelMap.EcommerceContinueShopping}]</a>-->
-              <#if (shoppingCartSize > 0)>
-                <a href="javascript:document.cartform.submit();" class="submenutext">${uiLabelMap.EcommerceRecalculateCart}</a>
-                <a href="<@ofbizUrl>emptycart</@ofbizUrl>" class="submenutext">${uiLabelMap.EcommerceEmptyCart}</a>
-                <a href="javascript:removeSelected();" class="submenutext">${uiLabelMap.EcommerceRemoveSelected}</a>
-              <#else>
-                <span class="submenutextdisabled">${uiLabelMap.EcommerceRecalculateCart}</span>
-                <span class="submenutextdisabled">${uiLabelMap.EcommerceEmptyCart}</span>
-                <span class="submenutextdisabled">${uiLabelMap.EcommerceRemoveSelected}</span>
-              </#if>
-              <#if (shoppingCartSize > 0)><a href="<@ofbizUrl>checkoutoptions</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderCheckout}</a><#else><span class="submenutextrightdisabled">${uiLabelMap.OrderCheckout}</span></#if>
-            </div>
-        </div>
-        <br />
-        <h2>&nbsp;${uiLabelMap.OrderShoppingCart}</h2>
+      <div class="lightbuttontextdisabled">
+        <#--<a href="<@ofbizUrl>main</@ofbizUrl>" class="lightbuttontext">
+              [${uiLabelMap.EcommerceContinueShopping}]
+            </a>-->
+        <#if (shoppingCartSize > 0)>
+          <a href="javascript:document.cartform.submit();" class="submenutext">
+            ${uiLabelMap.EcommerceRecalculateCart}
+          </a>
+          <a href="<@ofbizUrl>emptycart</@ofbizUrl>" class="submenutext">
+            ${uiLabelMap.EcommerceEmptyCart}
+          </a>
+          <a href="javascript:removeSelected();" class="submenutext">
+            ${uiLabelMap.EcommerceRemoveSelected}
+          </a>
+        <#else>
+          <span class="submenutextdisabled">${uiLabelMap.EcommerceRecalculateCart}</span>
+          <span class="submenutextdisabled">${uiLabelMap.EcommerceEmptyCart}</span>
+          <span class="submenutextdisabled">${uiLabelMap.EcommerceRemoveSelected}</span>
+        </#if>
+        <#if (shoppingCartSize > 0)>
+          <a href="<@ofbizUrl>checkoutoptions</@ofbizUrl>" class="submenutextright">
+            ${uiLabelMap.OrderCheckout}
+          </a>
+        <#else>
+          <span class="submenutextrightdisabled">${uiLabelMap.OrderCheckout}</span>
+        </#if>
+      </div>
     </div>
-    <div>
-
-  <#if (shoppingCartSize > 0)>
-    <form method="post" action="<@ofbizUrl>modifycart</@ofbizUrl>" name="cartform">
-      <fieldset>
-      <input type="hidden" name="removeSelected" value="false" />
-      <table>
-        <thead>
-            <tr>
-              <th></th>
-              <th scope="row">${uiLabelMap.OrderProduct}</th>
-              <#if asslGiftWraps?has_content && productStore.showCheckoutGiftOptions! != "N">>
-                <th scope="row">
-                  <select class="selectBox" name="GWALL" onchange="javascript:gwAll(this);">
-                    <option value="">${uiLabelMap.EcommerceGiftWrapAllItems}</option>
-                    <option value="NO^">${uiLabelMap.EcommerceNoGiftWrap}</option>
-                    <#list allgiftWraps as option>
-                      <option value="${option.productFeatureId}">${option.description} : ${option.defaultAmount?default(0)}</option>
-                    </#list>
-                  </select>
-              <#else>
-                <th scope="row">&nbsp;</th>
-              </#if>
-              <#if fixedAssetExist == true>
-                <td>
+    <br />
+    <h2>&nbsp;${uiLabelMap.OrderShoppingCart}</h2>
+  </div>
+  <div>
+    <#if (shoppingCartSize > 0)>
+      <form method="post" action="<@ofbizUrl>modifycart</@ofbizUrl>" name="cartform">
+        <fieldset>
+          <input type="hidden" name="removeSelected" value="false" />
+          <table>
+            <thead>
+              <tr>
+                <th></th>
+                <th scope="row">${uiLabelMap.OrderProduct}</th>
+                <#if asslGiftWraps?has_content && productStore.showCheckoutGiftOptions! != "N">>
+                  <th scope="row">
+                    <select class="selectBox" name="GWALL" onchange="javascript:gwAll(this);">
+                      <option value="">${uiLabelMap.EcommerceGiftWrapAllItems}</option>
+                      <option value="NO^">${uiLabelMap.EcommerceNoGiftWrap}</option>
+                      <#list allgiftWraps as option>
+                        <option value="${option.productFeatureId}">
+                          ${option.description} : ${option.defaultAmount?default(0)}
+                        </option>
+                      </#list>
+                    </select>
+                <#else>
+                  <th scope="row">&nbsp;</th>
+                </#if>
+                <#if fixedAssetExist == true>
+                  <td>
                     <table>
-                        <tr>
-                            <td>- ${uiLabelMap.EcommerceStartDate} -</td>
-                            <td>- ${uiLabelMap.EcommerceNbrOfDays} -</td>
-                        </tr>
-                        <tr>
-                            <td >- ${uiLabelMap.EcommerceNbrOfPersons} -</td>
-                            <td >- ${uiLabelMap.CommonQuantity} -</td>
-                        </tr>
+                      <tr>
+                        <td>- ${uiLabelMap.EcommerceStartDate} -</td>
+                        <td>- ${uiLabelMap.EcommerceNbrOfDays} -</td>
+                      </tr>
+                      <tr>
+                        <td >- ${uiLabelMap.EcommerceNbrOfPersons} -</td>
+                        <td >- ${uiLabelMap.CommonQuantity} -</td>
+                      </tr>
                     </table>
-                </td>
-              <#else>
-                <th scope="row">${uiLabelMap.CommonQuantity}</th>
-              </#if>
-              <th scope="row">${uiLabelMap.EcommerceUnitPrice}</th>
-              <th scope="row">${uiLabelMap.EcommerceAdjustments}</th>
-              <th scope="row">${uiLabelMap.EcommerceItemTotal}</th>
-              <th scope="row"><input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);" /></th>
-            </tr>
-        </thead>
-        <tbody>
-        <#assign itemsFromList = false />
-        <#assign promoItems = false />
-        <#list shoppingCart.items() as cartLine>
-
-          <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine) />
-          <#assign lineOptionalFeatures = cartLine.getOptionalProductFeatures() />
-          <#-- show adjustment info -->
-          <#list cartLine.getAdjustments() as cartLineAdjustment>
-            <!-- cart line ${cartLineIndex} adjustment: ${cartLineAdjustment} -->
-          </#list>
-
-          <tr id="cartItemDisplayRow_${cartLineIndex}">
-            <td>
-                <#if cartLine.getShoppingListId()??>
-                  <#assign itemsFromList = true />
-                  <a href="<@ofbizUrl>editShoppingList?shoppingListId=${cartLine.getShoppingListId()}</@ofbizUrl>" class="linktext">L</a>&nbsp;&nbsp;
-                <#elseif cartLine.getIsPromo()>
-                  <#assign promoItems = true />
-                  <a href="<@ofbizUrl>view/showcart</@ofbizUrl>" class="button">P</a>&nbsp;&nbsp;
+                  </td>
                 <#else>
-                  &nbsp;
+                  <th scope="row">${uiLabelMap.CommonQuantity}</th>
                 </#if>
-            </td>
-            <td>
-                  <#if cartLine.getProductId()??>
-                    <#-- product item -->
-                    <#-- start code to display a small image of the product -->
-                    <#if cartLine.getParentProductId()??>
-                      <#assign parentProductId = cartLine.getParentProductId() />
+                <th scope="row">${uiLabelMap.EcommerceUnitPrice}</th>
+                <th scope="row">${uiLabelMap.EcommerceAdjustments}</th>
+                <th scope="row">${uiLabelMap.EcommerceItemTotal}</th>
+                <th scope="row">
+                  <input type="checkbox" name="selectAll" value="0" onclick="javascript:toggleAll(this);" />
+                </th>
+              </tr>
+            </thead>
+            <tbody>
+              <#assign itemsFromList = false />
+              <#assign promoItems = false />
+              <#list shoppingCart.items() as cartLine>
+                <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine) />
+                <#assign lineOptionalFeatures = cartLine.getOptionalProductFeatures() />
+                <#-- show adjustment info -->
+                <#list cartLine.getAdjustments() as cartLineAdjustment>
+                  <!-- cart line ${cartLineIndex} adjustment: ${cartLineAdjustment} -->
+                </#list>
+                <tr id="cartItemDisplayRow_${cartLineIndex}">
+                  <td>
+                    <#if cartLine.getShoppingListId()??>
+                      <#assign itemsFromList = true />
+                      <a href="<@ofbizUrl>editShoppingList?shoppingListId=${cartLine.getShoppingListId()}</@ofbizUrl>"
+                          class="linktext">L</a>&nbsp;&nbsp;
+                    <#elseif cartLine.getIsPromo()>
+                      <#assign promoItems = true />
+                      <a href="<@ofbizUrl>view/showcart</@ofbizUrl>" class="button">P</a>&nbsp;&nbsp;
                     <#else>
-                      <#assign parentProductId = cartLine.getProductId() />
+                      &nbsp;
                     </#if>
-                    <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
-                    <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg" /></#if>
-                    <#if smallImageUrl?string?has_content>
-                      <a href="<@ofbizCatalogAltUrl productId=parentProductId/>">
-                        <img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt="Product Image" class="imageborder" />
-                      </a>
-                    </#if>
-                    <#-- end code to display a small image of the product -->
-                    <#-- ${cartLineIndex} - -->
-                    <a href="<@ofbizCatalogAltUrl productId=parentProductId/>" class="linktext">${cartLine.getProductId()} -
-                    ${cartLine.getName()!}</a> : ${cartLine.getDescription()!}
-                    <#-- For configurable products, the selected options are shown -->
-                    <#if cartLine.getConfigWrapper()??>
-                      <#assign selectedOptions = cartLine.getConfigWrapper().getSelectedOptions()! />
-                      <#if selectedOptions??>
-                        <div>&nbsp;</div>
-                        <#list selectedOptions as option>
-                          <div>
-                            ${option.getDescription()}
-                          </div>
-                        </#list>
+                  </td>
+                  <td>
+                    <#if cartLine.getProductId()??>
+                      <#-- product item -->
+                      <#-- start code to display a small image of the product -->
+                      <#if cartLine.getParentProductId()??>
+                        <#assign parentProductId = cartLine.getParentProductId() />
+                      <#else>
+                        <#assign parentProductId = cartLine.getProductId() />
                       </#if>
-                    </#if>
+                      <#assign smallImageUrl =
+                          Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(
+                          cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
+                      <#if !smallImageUrl?string?has_content>
+                        <#assign smallImageUrl = "/images/defaultImage.jpg" />
+                      </#if>
+                      <#if smallImageUrl?string?has_content>
+                        <a href="<@ofbizCatalogAltUrl productId=parentProductId/>">
+                          <img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
+                              alt="Product Image" class="imageborder" />
+                        </a>
+                      </#if>
+                      <#-- end code to display a small image of the product -->
+                      <#-- ${cartLineIndex} - -->
+                      <a href="<@ofbizCatalogAltUrl productId=parentProductId/>"
+                          class="linktext">${cartLine.getProductId()} -
+                        ${cartLine.getName()!}
+                      </a> : ${cartLine.getDescription()!}
+                      <#-- For configurable products, the selected options are shown -->
+                      <#if cartLine.getConfigWrapper()??>
+                        <#assign selectedOptions = cartLine.getConfigWrapper().getSelectedOptions()! />
+                        <#if selectedOptions??>
+                          <div>&nbsp;</div>
+                          <#list selectedOptions as option>
+                            <div>
+                              ${option.getDescription()}
+                            </div>
+                          </#list>
+                        </#if>
+                      </#if>
 
-                    <#-- if inventory is not required check to see if it is out of stock and needs to have a message shown about that... -->
-                    <#assign itemProduct = cartLine.getProduct() />
-                    <#assign isStoreInventoryNotRequiredAndNotAvailable = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryRequiredAndAvailable(request, itemProduct, cartLine.getQuantity(), false, false) />
-                    <#if isStoreInventoryNotRequiredAndNotAvailable && itemProduct.inventoryMessage?has_content>
+                      <#-- if inventory is not required check to see if it is out
+                       of stock and needs to have a message shown about that... -->
+                      <#assign itemProduct = cartLine.getProduct() />
+                      <#assign isStoreInventoryNotRequiredAndNotAvailable =
+                          Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
+                          .isStoreInventoryRequiredAndAvailable(request, itemProduct,
+                          cartLine.getQuantity(), false, false) />
+                      <#if isStoreInventoryNotRequiredAndNotAvailable && itemProduct.inventoryMessage?has_content>
                         (${itemProduct.inventoryMessage})
+                      </#if>
+
+                    <#else>
+                      <#-- this is a non-product item -->
+                      ${cartLine.getItemTypeDescription()!}: ${cartLine.getName()!}
                     </#if>
 
-                  <#else>
-                    <#-- this is a non-product item -->
-                    ${cartLine.getItemTypeDescription()!}: ${cartLine.getName()!}
-                  </#if>
-                  <#assign attrs = cartLine.getOrderItemAttributes()/>
-                  <#if attrs?has_content>
-                    <#assign attrEntries = attrs.entrySet()/>
-                    <ul>
-                    <#list attrEntries as attrEntry>
+                    <#assign attrs = cartLine.getOrderItemAttributes()/>
+                    <#if attrs?has_content>
+                      <#assign attrEntries = attrs.entrySet()/>
+                      <ul>
+                        <#list attrEntries as attrEntry>
+                          <li>
+                            ${attrEntry.getKey()} : ${attrEntry.getValue()}
+                          </li>
+                        </#list>
+                      </ul>
+                    </#if>
+                    <#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)>
+                      <#-- Show alternate gifts if there are any... -->
+                      <div class="tableheadtext">${uiLabelMap.OrderChooseFollowingForGift}:</div>
+                      <select name="dummyAlternateGwpSelect${cartLineIndex}"
+                          onchange="setAlternateGwp(this);" class="selectBox">
+                        <option value="">- ${uiLabelMap.OrderChooseAnotherGift} -</option>
+                        <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
+                          <#assign alternativeOptionName =
+                            Static["org.apache.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(
+                            dispatcher, delegator, alternativeOptionProductId, requestAttributes.locale) />
+                          <option
+                              value="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>">
+                            ${alternativeOptionName?default(alternativeOptionProductId)}
+                          </option>
+                        </#list>
+                      </select>
+                      <#-- this is the old way, it lists out the options and is not as nice as the drop-down
+                      <ul>
+                      <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
+                        <#assign alternativeOptionName = Static["org.apache.ofbiz.product.product.ProductWorker"]
+                            .getGwpAlternativeOptionName(delegator, alternativeOptionProductId,
+                            requestAttributes.locale) />
                         <li>
-                            ${attrEntry.getKey()} : ${attrEntry.getValue()}
+                          <a href="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>"
+                              class="button">Select: ${alternativeOptionName?default(alternativeOptionProductId)}</a>
                         </li>
-                    </#list>
-                    </ul>
-                  </#if>
-                <#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)>
-                  <#-- Show alternate gifts if there are any... -->
-                  <div class="tableheadtext">${uiLabelMap.OrderChooseFollowingForGift}:</div>
-                  <select name="dummyAlternateGwpSelect${cartLineIndex}" onchange="setAlternateGwp(this);" class="selectBox">
-                  <option value="">- ${uiLabelMap.OrderChooseAnotherGift} -</option>
-                  <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
-                    <#assign alternativeOptionName = Static["org.apache.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(dispatcher, delegator, alternativeOptionProductId, requestAttributes.locale) />
-                    <option value="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>">${alternativeOptionName?default(alternativeOptionProductId)}</option>
-                  </#list>
-                  </select>
-                  <#-- this is the old way, it lists out the options and is not as nice as the drop-down
-                  <ul>
-                  <#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
-                    <#assign alternativeOptionName = Static["org.apache.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(delegator, alternativeOptionProductId, requestAttributes.locale) />
-                    <li><a href="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>" class="button">Select: ${alternativeOptionName?default(alternativeOptionProductId)}</a></li>
-                  </#list>
-                  </ul>
-                  -->
-                </#if>
-            </td>
+                      </#list>
+                      </ul>
+                      -->
+                    </#if>
+                  </td>
 
-            <#-- gift wrap option -->
-            <#assign showNoGiftWrapOptions = false />
-            <td >
-              <#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP! />
-              <#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")! />
-              <#if giftWrapOption?has_content>
-                <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}" onchange="javascript:document.cartform.submit()">
-                  <option value="NO^">${uiLabelMap.EcommerceNoGiftWrap}</option>
-                  <#list giftWrapOption as option>
-                    <option value="${option.productFeatureId}" <#if ((selectedOption.productFeatureId)?? && selectedOption.productFeatureId == option.productFeatureId)>selected="selected"</#if>>${option.description} : ${option.amount?default(0)}</option>
-                  </#list>
-                </select>
-              <#elseif showNoGiftWrapOptions>
-                <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}" onchange="javascript:document.cartform.submit()">
-                  <option value="">${uiLabelMap.EcommerceNoGiftWrap}</option>
-                </select>
-              <#else>
-                &nbsp;
-              </#if>
-            </td>
-            <#-- end gift wrap option -->
+                  <#-- gift wrap option -->
+                  <#assign showNoGiftWrapOptions = false />
+                  <td >
+                    <#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP! />
+                    <#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")! />
+                    <#if giftWrapOption?has_content>
+                      <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}"
+                          onchange="javascript:document.cartform.submit()">
+                        <option value="NO^">${uiLabelMap.EcommerceNoGiftWrap}</option>
+                        <#list giftWrapOption as option>
+                          <option value="${option.productFeatureId}"
+                              <#if ((selectedOption.productFeatureId)?? && selectedOption.productFeatureId ==
+                              option.productFeatureId)>selected="selected"</#if>>
+                            ${option.description} : ${option.amount?default(0)}
+                          </option>
+                        </#list>
+                      </select>
+                    <#elseif showNoGiftWrapOptions>
+                      <select class="selectBox" name="option^GIFT_WRAP_${cartLineIndex}"
+                          onchange="javascript:document.cartform.submit()">
+                        <option value="">${uiLabelMap.EcommerceNoGiftWrap}</option>
+                      </select>
+                    <#else>
+                      &nbsp;
+                    </#if>
+                  </td>
+                  <#-- end gift wrap option -->
 
-            <td>
-                <#if cartLine.getIsPromo() || cartLine.getShoppingListId()??>
-                       <#if fixedAssetExist == true>
+                  <td>
+                    <#if cartLine.getIsPromo() || cartLine.getShoppingListId()??>
+                      <#if fixedAssetExist == true>
                         <#if cartLine.getReservStart()??>
-                            <table >
-                                <tr>
-                                    <td>&nbsp;</td>
-                                    <td>${cartLine.getReservStart()?string("yyyy-mm-dd")}</td>
-                                    <td>${cartLine.getReservLength()?string.number}</td></tr>
-                                <tr>
-                                    <td>&nbsp;</td>
-                                    <td>${cartLine.getReservPersons()?string.number}</td>
-                                    <td>
+                          <table >
+                            <tr>
+                              <td>&nbsp;</td>
+                              <td>${cartLine.getReservStart()?string("yyyy-mm-dd")}</td>
+                              <td>${cartLine.getReservLength()?string.number}</td></tr>
+                            <tr>
+                              <td>&nbsp;</td>
+                              <td>${cartLine.getReservPersons()?string.number}</td>
+                              <td>
                         <#else>
-                            <table >
-                                <tr>
-                                    <td >--</td>
-                                    <td>--</td>
-                                </tr>
-                                <tr>
-                                    <td>--</td>
-                                    <td>    
+                          <table >
+                            <tr>
+                              <td >--</td>
+                              <td>--</td>
+                            </tr>
+                            <tr>
+                              <td>--</td>
+                              <td>
                         </#if>
                         ${cartLine.getQuantity()?string.number}</td></tr></table>
-                    <#else><#-- fixedAssetExist -->
+                      <#else><#-- fixedAssetExist -->
                         ${cartLine.getQuantity()?string.number}
+                      </#if>
+                    <#else><#-- Is Promo or Shoppinglist -->
+                      <#if fixedAssetExist == true>
+                        <#if cartLine.getReservStart()??>
+                          <table>
+                            <tr>
+                              <td>&nbsp;</td>
+                              <td>
+                                <input type="text" class="inputBox" size="10" name="reservStart_${cartLineIndex}"
+                                    value=${cartLine.getReservStart()?string}/>
+                              </td>
+                              <td>
+                                <input type="text" class="inputBox" size="2" name="reservLength_${cartLineIndex}"
+                                    value="${cartLine.getReservLength()?string.number}"/>
+                              </td>
+                            </tr>
+                            <tr>
+                              <td>&nbsp;</td>
+                              <td>
+                                <input type="text" class="inputBox" size="3" name="reservPersons_${cartLineIndex}"
+                                    value=${cartLine.getReservPersons()?string.number} />
+                              </td>
+                              <td>
+                        <#else>
+                          <table>
+                            <tr>
+                              <td>--</td>
+                              <td>--</td>
+                            </tr>
+                            <tr>
+                              <td>--</td>
+                              <td>
+                        </#if>
+                              <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}"
+                                  value="${cartLine.getQuantity()?string.number}" />
+                              </td>
+                            </tr>
+                          </table>
+                        <#else><#-- fixedAssetExist -->
+                          <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}"
+                              value="${cartLine.getQuantity()?string.number}" />
+                        </#if>
                     </#if>
-                <#else><#-- Is Promo or Shoppinglist -->
-                       <#if fixedAssetExist == true><#if cartLine.getReservStart()??><table><tr><td>&nbsp;</td><td><input type="text" class="inputBox" size="10" name="reservStart_${cartLineIndex}" value=${cartLine.getReservStart()?string}/></td><td><input type="text" class="inputBox" size="2" name="reservLength_${cartLineIndex}" value="${cartLine.getReservLength()?string.number}"/></td></tr><tr><td>&nbsp;</td><td><input type="text" class="inputBox" size="3" name="reservPersons_${cartLineIndex}" value=${cartLine.getReservPersons()?string.number} /></td><td><#else>
-                           <table><tr><td>--</td><td>--</td></tr><tr><td>--</td><td></#if>
-                        <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}" value="${cartLine.getQuantity()?string.number}" /></td></tr></table>
-                    <#else><#-- fixedAssetExist -->
-                        <input size="6" class="inputBox" type="text" name="update_${cartLineIndex}" value="${cartLine.getQuantity()?string.number}" />
+                  </td>
+                  <td><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/></td>
+                  <td><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/></td>
+                  <td><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></td>
+                  <td>
+                    <#if !cartLine.getIsPromo()>
+                      <input type="checkbox" name="selectedItem" value="${cartLineIndex}"
+                             onclick="javascript:checkToggle(this);" />
+                    <#else>
+                      &nbsp;
                     </#if>
-                </#if>
-            </td>
-            <td><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/></td>
-            <td><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/></td>
-            <td><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></td>
-            <td><#if !cartLine.getIsPromo()><input type="checkbox" name="selectedItem" value="${cartLineIndex}" onclick="javascript:checkToggle(this);" /><#else>&nbsp;</#if></td>
-          </tr>
-        </#list>
-    </tbody>
-    </table>
-    <table>
-        <#if shoppingCart.getAdjustments()?has_content>
+                  </td>
+                </tr>
+              </#list>
+            </tbody>
+          </table>
+          <table>
+            <#if shoppingCart.getAdjustments()?has_content>
+              <tr>
+                <th>${uiLabelMap.CommonSubTotal}:</th>
+                <td>
+                  <@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/>
+                </td>
+                <td>&nbsp;</td>
+              </tr>
+              <#if (shoppingCart.getDisplayTaxIncluded() > 0.0)>
+                <tr>
+                  <th>${uiLabelMap.OrderSalesTaxIncluded}:</th>
+                  <td>
+                    <@ofbizCurrency amount=shoppingCart.getDisplayTaxIncluded() isoCode=shoppingCart.getCurrency()/>
+                  </td>
+                  <td>&nbsp;</td>
+                </tr>
+              </#if>
+              <#list shoppingCart.getAdjustments() as cartAdjustment>
+                <#assign adjustmentType = cartAdjustment.getRelatedOne("OrderAdjustmentType", true) />
+                <tr>
+                  <th>
+                    ${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)!}
+                    <#if cartAdjustment.productPromoId?has_content>
+                      <a href="<@ofbizUrl>showPromotionDetails?productPromoId=${cartAdjustment.productPromoId}</@ofbizUrl>"
+                          class="button">
+                        ${uiLabelMap.CommonDetails}
+                      </a>
+                    </#if>:
+                  </th>
+                  <td>
+                    <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"]
+                        .calcOrderAdjustment(cartAdjustment,
+                        shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/>
+                  </td>
+                  <td>&nbsp;</td>
+                </tr>
+              </#list>
+            </#if>
             <tr>
-              <th>${uiLabelMap.CommonSubTotal}:</th>
-              <td><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/></td>
-              <td>&nbsp;</td>
+              <th>${uiLabelMap.EcommerceCartTotal}:</th>
+              <td>
+                <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
+              </td>
             </tr>
-            <#if (shoppingCart.getDisplayTaxIncluded() > 0.0)>
+            <#if itemsFromList>
               <tr>
-                <th>${uiLabelMap.OrderSalesTaxIncluded}:</th>
-                <td><@ofbizCurrency amount=shoppingCart.getDisplayTaxIncluded() isoCode=shoppingCart.getCurrency()/></td>
-                <td>&nbsp;</td>
+                <td>L - ${uiLabelMap.EcommerceItemsfromShopingList}.</td>
               </tr>
             </#if>
-            <#list shoppingCart.getAdjustments() as cartAdjustment>
-              <#assign adjustmentType = cartAdjustment.getRelatedOne("OrderAdjustmentType", true) />
+            <#if promoItems>
               <tr>
-                <th>
-                    ${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)!}
-                    <#if cartAdjustment.productPromoId?has_content><a href="<@ofbizUrl>showPromotionDetails?productPromoId=${cartAdjustment.productPromoId}</@ofbizUrl>" class="button">${uiLabelMap.CommonDetails}</a></#if>:
-                </th>
-                <td><@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/></td>
+                <td>P - ${uiLabelMap.EcommercePromotionalItems}.</td>
+              </tr>
+            </#if>
+            <#if !itemsFromList && !promoItems>
+              <tr>
                 <td>&nbsp;</td>
               </tr>
-            </#list>
-        </#if>
-        <tr>
-          <th>${uiLabelMap.EcommerceCartTotal}:</th>
-          <td><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></td>
-        </tr>
-        <#if itemsFromList>
-        <tr>
-          <td>L - ${uiLabelMap.EcommerceItemsfromShopingList}.</td>
-        </tr>
-        </#if>
-        <#if promoItems>
-        <tr>
-          <td>P - ${uiLabelMap.EcommercePromotionalItems}.</td>
-        </tr>
-        </#if>
-        <#if !itemsFromList && !promoItems>
-        <tr>
-          <td>&nbsp;</td>
-        </tr>
-        </#if>
-        <tr>
-          <td>
-              <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
-              <select name="shoppingListId" class="selectBox">
-                <#if shoppingLists?has_content>
-                  <#list shoppingLists as shoppingList>
-                    <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option>
-                  </#list>
+            </#if>
+            <tr>
+              <td>
+                <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
+                  <select name="shoppingListId" class="selectBox">
+                    <#if shoppingLists?has_content>
+                      <#list shoppingLists as shoppingList>
+                        <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option>
+                      </#list>
+                    </#if>
+                    <option value="">---</option>
+                    <option value="">${uiLabelMap.OrderNewShoppingList}</option>
+                  </select>
+                  &nbsp;&nbsp;
+                  <a href="javascript:addToList();" class="button">
+                    ${uiLabelMap.EcommerceAddSelectedtoList}
+                  </a>&nbsp;&nbsp;
+                <#else>
+                  ${uiLabelMap.OrderYouMust}
+                  <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="button">
+                    ${uiLabelMap.CommonBeLogged}
+                  </a>
+                  ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
                 </#if>
-                <option value="">---</option>
-                <option value="">${uiLabelMap.OrderNewShoppingList}</option>
-              </select>
-              &nbsp;&nbsp;
-              <a href="javascript:addToList();" class="button">${uiLabelMap.EcommerceAddSelectedtoList}</a>&nbsp;&nbsp;
-              <#else>
-               ${uiLabelMap.OrderYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="button">${uiLabelMap.CommonBeLogged}</a>
-                ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
-              </#if>
-          </td>
-        </tr>
-        <tr>
-          <td>
-              <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
-              &nbsp;&nbsp;
-              <a href="<@ofbizUrl>createCustRequestFromCart</@ofbizUrl>" class="button">${uiLabelMap.OrderCreateCustRequestFromCart}</a>&nbsp;&nbsp;
-              &nbsp;&nbsp;
-              <a href="<@ofbizUrl>createQuoteFromCart</@ofbizUrl>" class="button">${uiLabelMap.OrderCreateQuoteFromCart}</a>&nbsp;&nbsp;
-              <#else>
-               ${uiLabelMap.OrderYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="button">${uiLabelMap.CommonBeLogged}</a>
-                ${uiLabelMap.EcommerceToOrderCreateCustRequestFromCart}.&nbsp;
-              </#if>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" onclick="javascript:document.cartform.submit()" name="alwaysShowcart" <#if shoppingCart.viewCartOnAdd()>checked="checked"</#if>/>${uiLabelMap.EcommerceAlwaysViewCartAfterAddingAnItem}.
-          </td>
-        </tr>
-      </table>
-      </fieldset>
-    </form>
-  <#else>
-    <h2>${uiLabelMap.EcommerceYourShoppingCartEmpty}.</h2>
-  </#if>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
+                  &nbsp;&nbsp;
+                  <a href="<@ofbizUrl>createCustRequestFromCart</@ofbizUrl>" class="button">
+                    ${uiLabelMap.OrderCreateCustRequestFromCart}
+                  </a>&nbsp;&nbsp;&nbsp;&nbsp;
+                  <a href="<@ofbizUrl>createQuoteFromCart</@ofbizUrl>" class="button">
+                    ${uiLabelMap.OrderCreateQuoteFromCart}</a>&nbsp;&nbsp;
+                <#else>
+                  ${uiLabelMap.OrderYouMust}
+                  <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="button">
+                    ${uiLabelMap.CommonBeLogged}
+                  </a>
+                  ${uiLabelMap.EcommerceToOrderCreateCustRequestFromCart}.&nbsp;
+                </#if>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <input type="checkbox" onclick="javascript:document.cartform.submit()"
+                    name="alwaysShowcart" <#if shoppingCart.viewCartOnAdd()>checked="checked"</#if>/>
+                ${uiLabelMap.EcommerceAlwaysViewCartAfterAddingAnItem}.
+              </td>
+            </tr>
+          </table>
+        </fieldset>
+      </form>
+    <#else>
+      <h2>${uiLabelMap.EcommerceYourShoppingCartEmpty}.</h2>
+    </#if>
 <#-- Copy link bar to bottom to include a link bar at the bottom too -->
     </div>
 </div>
 
 <div>
+  <div>
+    <h2>${uiLabelMap.ProductPromoCodes}</h2>
+  </div>
+  <div>
     <div>
-        <h2>${uiLabelMap.ProductPromoCodes}</h2>
+      <form method="post"
+          action="<@ofbizUrl>addpromocode<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addpromocodeform">
+        <fieldset>
+          <input type="text" class="inputBox" size="15" name="productPromoCodeId" value="" />
+          <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddCode}" />
+          <#assign productPromoCodeIds = (shoppingCart.getProductPromoCodesEntered())! />
+          <#if productPromoCodeIds?has_content>
+            ${uiLabelMap.ProductPromoCodesEntered}
+            <ul>
+              <#list productPromoCodeIds as productPromoCodeId>
+                <li>${productPromoCodeId}</li>
+              </#list>
+            </ul>
+          </#if>
+        </fieldset>
+      </form>
     </div>
-    <div>
-        <div>
-            <form method="post" action="<@ofbizUrl>addpromocode<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addpromocodeform">
-                <fieldset>
-                <input type="text" class="inputBox" size="15" name="productPromoCodeId" value="" />
-                <input type="submit" class="smallSubmit" value="${uiLabelMap.OrderAddCode}" />
-                <#assign productPromoCodeIds = (shoppingCart.getProductPromoCodesEntered())! />
-                <#if productPromoCodeIds?has_content>
-                    ${uiLabelMap.ProductPromoCodesEntered}
-                    <ul>
-                    <#list productPromoCodeIds as productPromoCodeId>
-                        <li>${productPromoCodeId}</li>
-                    </#list>
-                    </ul>
-                </#if>
-                </fieldset>
-            </form>
-        </div>
-    </div>
+  </div>
 </div>
 
 <#if showPromoText?? && showPromoText>
-<div>
+  <div>
     <div>
-        <h2>${uiLabelMap.OrderSpecialOffers}</h2>
+      <h2>${uiLabelMap.OrderSpecialOffers}</h2>
     </div>
     <div>
-        <#-- show promotions text -->
-        <ul>
+      <#-- show promotions text -->
+      <ul>
         <#list productPromos as productPromo>
-            <li><a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>" class="linktext">[${uiLabelMap.CommonDetails}]</a>${StringUtil.wrapString(productPromo.promoText!)}</li>
+          <li>
+            <a href="<@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>"
+                class="linktext">[${uiLabelMap.CommonDetails}]</a>
+              ${StringUtil.wrapString(productPromo.promoText!)}
+          </li>
         </#list>
-        </ul>
-        <div><a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">${uiLabelMap.OrderViewAllPromotions}</a></div>
+      </ul>
+      <div>
+        <a href="<@ofbizUrl>showAllPromotions</@ofbizUrl>" class="button">${uiLabelMap.OrderViewAllPromotions}</a>
+      </div>
     </div>
-</div>
+  </div>
 </#if>
 
 <#if associatedProducts?has_content>
-<div>
+  <div>
     <div>
-        <h2>${uiLabelMap.EcommerceYouMightAlsoIntrested}:</h2>
+      <h2>${uiLabelMap.EcommerceYouMightAlsoIntrested}:</h2>
     </div>
     <div>
-        <#-- random complementary products -->
-        <#list associatedProducts as assocProduct>
-            <div>
-                ${setRequestAttribute("optProduct", assocProduct)}
-                ${setRequestAttribute("listIndex", assocProduct_index)}
-                ${screens.render("component://ecommerce/widget/CatalogScreens.xml#productsummary")}
-            </div>
-        </#list>
+      <#-- random complementary products -->
+      <#list associatedProducts as assocProduct>
+        <div>
+          ${setRequestAttribute("optProduct", assocProduct)}
+          ${setRequestAttribute("listIndex", assocProduct_index)}
+          ${screens.render("component://ecommerce/widget/CatalogScreens.xml#productsummary")}
+        </div>
+      </#list>
     </div>
-</div>
+  </div>
 </#if>
 
 <#if (shoppingCartSize?default(0) > 0)>
@@ -527,4 +672,7 @@
   ${screens.render("component://ecommerce/widget/CartScreens.xml#promoUseDetailsInline")}
 </#if>
 
-<!-- Internal cart info: productStoreId=${shoppingCart.getProductStoreId()!} locale=${shoppingCart.getLocale()!} currencyUom=${shoppingCart.getCurrency()!} userLoginId=${(shoppingCart.getUserLogin().getString("userLoginId"))!} autoUserLogin=${(shoppingCart.getAutoUserLogin().getString("userLoginId"))!} -->
+<!-- Internal cart info: productStoreId=${shoppingCart.getProductStoreId()!}
+       locale=${shoppingCart.getLocale()!} currencyUom=${shoppingCart.getCurrency()!}
+       userLoginId=${(shoppingCart.getUserLogin().getString("userLoginId"))!}
+       autoUserLogin=${(shoppingCart.getAutoUserLogin().getString("userLoginId"))!} -->
Index: specialpurpose/ecommerce/template/cart/UpdateCart.ftl
===================================================================
--- specialpurpose/ecommerce/template/cart/UpdateCart.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/cart/UpdateCart.ftl	(working copy)
@@ -35,27 +35,40 @@
       <tfoot>
         <tr id="completedCartSubtotalRow">
           <th id="subTotal" scope="row" colspan="5">${uiLabelMap.CommonSubtotal}</th>
-          <td headers="subTotal" id="completedCartSubTotal"><@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() /></td>
+          <td headers="subTotal" id="completedCartSubTotal">
+            <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+          </td>
         </tr>
         <#assign orderAdjustmentsTotal = 0 />
         <#list shoppingCart.getAdjustments() as cartAdjustment>
-          <#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
+          <#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
+              Static["org.apache.ofbiz.order.order.OrderReadHelper"]
+              .calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
         </#list>
         <tr id="completedCartDiscountRow">
           <th id="productDiscount" scope="row" colspan="5">${uiLabelMap.ProductDiscount}</th>
-          <td headers="productDiscount" id="completedCartDiscount"><input type="hidden" value="${orderAdjustmentsTotal}" id="initializedCompletedCartDiscount" /><@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() /></td>
+          <td headers="productDiscount" id="completedCartDiscount">
+            <input type="hidden" value="${orderAdjustmentsTotal}" id="initializedCompletedCartDiscount" />
+            <@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
+          </td>
         </tr>
         <tr>
           <th id="shippingAndHandling" scope="row" colspan="5">${uiLabelMap.OrderShippingAndHandling}</th>
-          <td headers="shippingAndHandling" id="completedCartTotalShipping"><@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() /></td>
+          <td headers="shippingAndHandling" id="completedCartTotalShipping">
+            <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+          </td>
         </tr>
         <tr>
           <th id="salesTax" scope="row" colspan="5">${uiLabelMap.OrderSalesTax}</th>
-          <td headers="salesTax" id="completedCartTotalSalesTax"><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() /></td>
+          <td headers="salesTax" id="completedCartTotalSalesTax">
+            <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+          </td>
         </tr>
         <tr>
           <th id="grandTotal" scope="row" colspan="5">${uiLabelMap.OrderGrandTotal}</th>
-          <td headers="grandTotal" id="completedCartDisplayGrandTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() /></td>
+          <td headers="grandTotal" id="completedCartDisplayGrandTotal">
+            <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+          </td>
         </tr>
       </tfoot>
       <tbody>
@@ -66,16 +79,29 @@
             <#else>
               <#assign parentProductId = cartLine.getProductId() />
             </#if>
-            <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
+            <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
+                .getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
             <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
           </#if>
           <tr id="cartItemDisplayRow_${cartLine_index}">
-            <td headers="orderItem"><img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt = "Product Image" /></td>
+            <td headers="orderItem">
+              <img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
+                  alt = "Product Image" /></td>
             <td headers="description">${cartLine.getName()!}</td>
             <td headers="unitPrice">${cartLine.getDisplayPrice()}</td>
-            <td headers="quantity"><span id="completedCartItemQty_${cartLine_index}">${cartLine.getQuantity()?string.number}</span></td>
-            <td headers="adjustment"><span id="completedCartItemAdjustment_${cartLine_index}"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></span></td>
-            <td headers="itemTotal" align="right"><span id="completedCartItemSubTotal_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /></span></td>
+            <td headers="quantity">
+              <span id="completedCartItemQty_${cartLine_index}">${cartLine.getQuantity()?string.number}</span>
+            </td>
+            <td headers="adjustment">
+              <span id="completedCartItemAdjustment_${cartLine_index}">
+                <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+              </span>
+            </td>
+            <td headers="itemTotal" align="right">
+              <span id="completedCartItemSubTotal_${cartLine_index}">
+                <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+              </span>
+            </td>
           </tr>
         </#list>
       </tbody>
@@ -101,7 +127,9 @@
           <tfoot>
             <tr>
               <th scope="row" colspan="6">${uiLabelMap.CommonSubtotal}</th>
-              <td id="cartSubTotal"><@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() /></td>
+              <td id="cartSubTotal">
+                <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+              </td>
             </tr>
             <tr>
               <th scope="row" colspan="6">${uiLabelMap.ProductDiscount}</th>
@@ -108,7 +136,9 @@
               <td id="cartDiscountValue">
                 <#assign orderAdjustmentsTotal = 0  />
                 <#list shoppingCart.getAdjustments() as cartAdjustment>
-                  <#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
+                  <#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
+                      Static["org.apache.ofbiz.order.order.OrderReadHelper"]
+                      .calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
                 </#list>
                 <@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
               </td>
@@ -115,15 +145,21 @@
             </tr>
             <tr>
               <th scope="row" colspan="6">${uiLabelMap.OrderShippingAndHandling}</th>
-              <td id="cartTotalShipping"><@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() /></td>
+              <td id="cartTotalShipping">
+                <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+              </td>
             </tr>
             <tr>
               <th scope="row" colspan="6">${uiLabelMap.OrderSalesTax}</th>
-              <td id="cartTotalSalesTax"><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() /></td>
+              <td id="cartTotalSalesTax">
+                <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+              </td>
             </tr>
             <tr>
               <th scope="row" colspan="6">${uiLabelMap.OrderGrandTotal}</th>
-              <td id="cartDisplayGrandTotal"><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() /></td>
+              <td id="cartDisplayGrandTotal">
+                <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+              </td>
             </tr>
           </tfoot>
           <tbody id="updateBody">
@@ -136,33 +172,56 @@
                     <#else>
                       <#assign parentProductId = cartLine.getProductId() />
                     </#if>
-                    <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
+                    <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
+                        .getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL",
+                        locale, dispatcher, "url")! />
                     <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
                     <#if smallImageUrl?string?has_content>
-                      <img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt="Product Image" />
+                      <img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
+                          alt="Product Image" />
                     </#if>
                   </#if>
                 </td>
                 <td headers="editDescription">${cartLine.getName()!}</td>
-                <td headers="editUnitPrice" id="itemUnitPrice_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() /></td>
+                <td headers="editUnitPrice" id="itemUnitPrice_${cartLine_index}">
+                  <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() />
+                </td>
                 <td headers="editQuantity">
                   <#if cartLine.getIsPromo()>
                     ${cartLine.getQuantity()?string.number}
                   <#else>
-                    <input type="hidden" name="cartLineProductId" id="cartLineProductId_${cartLine_index}" value="${cartLine.getProductId()}" />
-                    <input type="text" name="update${cartLine_index}" id="qty_${cartLine_index}" value="${cartLine.getQuantity()?string.number}" class="required validate-number" />
-                    <span id="advice-required-qty_${cartLine_index}" style="display:none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                    <span id="advice-validate-number-qty_${cartLine_index}" style="display:none;" class="errorMessage"> (${uiLabelMap.CommonPleaseEnterValidNumberInThisField}) </span>
+                    <input type="hidden" name="cartLineProductId" id="cartLineProductId_${cartLine_index}"
+                        value="${cartLine.getProductId()}" />
+                    <input type="text" name="update${cartLine_index}" id="qty_${cartLine_index}"
+                        value="${cartLine.getQuantity()?string.number}" class="required validate-number" />
+                    <span id="advice-required-qty_${cartLine_index}" style="display:none;" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                    <span id="advice-validate-number-qty_${cartLine_index}" style="display:none;" class="errorMessage">
+                      (${uiLabelMap.CommonPleaseEnterValidNumberInThisField})
+                    </span>
                   </#if>
                 </td>
                 <#if !cartLine.getIsPromo()>
-                  <td headers="editAdjustment" id="addPromoCode_${cartLine_index}"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></td>
+                  <td headers="editAdjustment" id="addPromoCode_${cartLine_index}">
+                    <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+                  </td>
                 <#else>
-                  <td headers="editAdjustment"><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /></td>
+                  <td headers="editAdjustment">
+                    <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+                  </td>
                 </#if>
-                <td headers="editItemTotal" id="displayItem_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /></td>
+                <td headers="editItemTotal" id="displayItem_${cartLine_index}">
+                  <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+                </td>
                 <#if !cartLine.getIsPromo()>
-                  <td><a id="removeItemLink_${cartLine_index}" href="javascript:void(0);"><img id="remove_${cartLine_index}" src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>" alt="Remove Item Image" /></a></td>
+                  <td>
+                    <a id="removeItemLink_${cartLine_index}" href="javascript:void(0);">
+                      <img id="remove_${cartLine_index}"
+                          src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>"
+                          alt="Remove Item Image" />
+                    </a>
+                  </td>
                 </#if>
               </tr>
             </#list>
@@ -176,8 +235,12 @@
         </div>
       </fieldset>
       <fieldset>
-        <a href="javascript:void(0);" class="button" id="updateShoppingCart" >${uiLabelMap.EcommerceContinueToStep} 2</a>
-        <a style="display: none" class="button" href="javascript:void(0);" id="processingShipping">${uiLabelMap.EcommercePleaseWait}....</a>
+        <a href="javascript:void(0);" class="button" id="updateShoppingCart" >
+          ${uiLabelMap.EcommerceContinueToStep} 2
+        </a>
+        <a style="display: none" class="button" href="javascript:void(0);" id="processingShipping">
+          ${uiLabelMap.EcommercePleaseWait}....
+        </a>
       </fieldset>
     </form>
   </div>
Index: specialpurpose/ecommerce/template/catalog/AdvancedSearch.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/AdvancedSearch.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/AdvancedSearch.ftl	(working copy)
@@ -16,45 +16,58 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
-<#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
+<#assign searchOptionsHistoryList =
+    Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
+<#assign currentCatalogId =
+    Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
 <h2>${uiLabelMap.ProductAdvancedSearchInCategory}</h2>
 <form id="advtokeywordsearchform" method="post" action="<@ofbizUrl>keywordsearch</@ofbizUrl>">
   <fieldset class="inline">
-    <input type="hidden" name="VIEW_SIZE" value="10" />
-    <input type="hidden" name="PAGING" value="Y" />
-    <input type="hidden" name="SEARCH_CATALOG_ID" value="${currentCatalogId}" />
-    <#if searchCategory?has_content>
-      <input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId?if_exists}" />
-      <label>${uiLabelMap.ProductCategory}</label>
-      <p>${(searchCategory.description)?if_exists}</p>
-      <div>
-        <label>${uiLabelMap.ProductIncludeSubCategories}</label>
-        <label for="SEARCH_SUB_CATEGORIES_YES">${uiLabelMap.CommonYes}</label> <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_YES" value="Y" checked="checked" />
-        <label for="SEARCH_SUB_CATEGORIES_NO">${uiLabelMap.CommonNo}</label> <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_NO" value="N" />
-      </div>
-    </#if>
+    <input type="hidden" name="VIEW_SIZE" value="10"/>
+    <input type="hidden" name="PAGING" value="Y"/>
+    <input type="hidden" name="SEARCH_CATALOG_ID" value="${currentCatalogId}"/>
+  <#if searchCategory?has_content>
+    <input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId?if_exists}"/>
+    <label>${uiLabelMap.ProductCategory}</label>
+    <p>${(searchCategory.description)?if_exists}</p>
     <div>
+      <label>${uiLabelMap.ProductIncludeSubCategories}</label>
+      <label for="SEARCH_SUB_CATEGORIES_YES">${uiLabelMap.CommonYes}</label>
+      <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_YES" value="Y"
+          checked="checked"/>
+      <label for="SEARCH_SUB_CATEGORIES_NO">${uiLabelMap.CommonNo}</label>
+      <input type="radio" name="SEARCH_SUB_CATEGORIES" id="SEARCH_SUB_CATEGORIES_NO" value="N"/>
+    </div>
+  </#if>
+    <div>
       <label for="SEARCH_STRING">${uiLabelMap.ProductKeywords}</label>
-      <input type="text" name="SEARCH_STRING" id="SEARCH_STRING"  size="20" value="${requestParameters.SEARCH_STRING?if_exists}" />
-      <label for="SEARCH_OPERATOR_ANY">${uiLabelMap.CommonAny}</label> <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ANY" value="OR" <#if searchOperator == "OR">checked="checked"</#if> />
-      <label for="SEARCH_OPERATOR_ALL">${uiLabelMap.CommonAll}</label> <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ALL" value="AND" <#if searchOperator == "AND">checked="checked"</#if> />
+      <input type="text" name="SEARCH_STRING" id="SEARCH_STRING" size="20"
+          value="${requestParameters.SEARCH_STRING?if_exists}"/>
+      <label for="SEARCH_OPERATOR_ANY">${uiLabelMap.CommonAny}</label>
+      <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ANY"
+          value="OR" <#if searchOperator == "OR">checked="checked"</#if>/>
+      <label for="SEARCH_OPERATOR_ALL">${uiLabelMap.CommonAll}</label>
+      <input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_ALL"
+          value="AND" <#if searchOperator == "AND">checked="checked"</#if>/>
     </div>
-    <#list productFeatureTypeIdsOrdered as productFeatureTypeId>
-      <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
-      <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
-      <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
-      <div>
-        <label for="pft_${productFeatureTypeId}">${(productFeatureType.get("description",locale))?if_exists}</label>
-        <select name="pft_${productFeatureTypeId}" id="pft_${productFeatureTypeId}">
-          <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
-          <#list productFeatures as productFeature>
-            <option value="${productFeature.productFeatureId}">${productFeature.description?default(productFeature.productFeatureId)}</option>
-          </#list>
-        </select>
-      </div>
-    </#list>
+  <#list productFeatureTypeIdsOrdered as productFeatureTypeId>
+    <#assign findPftMap =
+        Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
+    <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
+    <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
     <div>
+      <label for="pft_${productFeatureTypeId}">${(productFeatureType.get("description",locale))?if_exists}</label>
+      <select name="pft_${productFeatureTypeId}" id="pft_${productFeatureTypeId}">
+        <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
+        <#list productFeatures as productFeature>
+          <option value="${productFeature.productFeatureId}">
+            ${productFeature.description?default(productFeature.productFeatureId)}
+          </option>
+        </#list>
+      </select>
+    </div>
+  </#list>
+    <div>
       <label for="sortOrder">${uiLabelMap.ProductSortedBy}</label>
       <select name="sortOrder" id="sortOrder">
         <option value="SortKeywordRelevancy">${uiLabelMap.ProductKeywordRelevancy}</option>
@@ -64,52 +77,61 @@
         <option value="SortProductField:averageCustomerRating">${uiLabelMap.ProductCustomerRating}</option>
         <option value="SortProductPrice:LIST_PRICE">${uiLabelMap.ProductListPrice}</option>
         <option value="SortProductPrice:DEFAULT_PRICE">${uiLabelMap.ProductDefaultPrice}</option>
-        <#if productFeatureTypes?? && productFeatureTypes?has_content>
-          <#list productFeatureTypes as productFeatureType>
-            <option value="SortProductFeature:${productFeatureType.productFeatureTypeId}">${productFeatureType.description?default(productFeatureType.productFeatureTypeId)}</option>
-          </#list>
-        </#if>
+      <#if productFeatureTypes?? && productFeatureTypes?has_content>
+        <#list productFeatureTypes as productFeatureType>
+          <option value="SortProductFeature:${productFeatureType.productFeatureTypeId}">
+            ${productFeatureType.description?default(productFeatureType.productFeatureTypeId)}
+          </option>
+        </#list>
+      </#if>
       </select>
-      <label for="sortAscendingHigh">${uiLabelMap.EcommerceLowToHigh}</label> <input type="radio" name="sortAscending" id="sortAscendingHigh" value="Y" checked="checked" />
-      <label for="sortAscendingLow">${uiLabelMap.EcommerceHighToLow}</label> <input type="radio" name="sortAscending" id="sortAscendingLow" value="N" />
+      <label for="sortAscendingHigh">${uiLabelMap.EcommerceLowToHigh}</label>
+      <input type="radio" name="sortAscending" id="sortAscendingHigh" value="Y" checked="checked"/>
+      <label for="sortAscendingLow">${uiLabelMap.EcommerceHighToLow}</label>
+      <input type="radio" name="sortAscending" id="sortAscendingLow" value="N"/>
     </div>
-    <#if searchConstraintStrings?has_content>
+  <#if searchConstraintStrings?has_content>
+    <div>
+      <label>${uiLabelMap.ProductLastSearch}</label>
+      <#list searchConstraintStrings as searchConstraintString>
+        <p>${searchConstraintString}</p>
+      </#list>
+      <p>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</p>
       <div>
-        <label>${uiLabelMap.ProductLastSearch}</label>
-          <#list searchConstraintStrings as searchConstraintString>
-            <p>${searchConstraintString}</p>
-          </#list>
-          <p>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</p>
-          <div>
-            <label for="clearSearchNew">${uiLabelMap.ProductNewSearch}</label><input type="radio" name="clearSearch" id="clearSearchNew" value="Y" checked="checked" />
-            <label for="clearSearchRefine">${uiLabelMap.ProductRefineSearch}</label><input type="radio" name="clearSearch" id="clearSearchRefine" value="N" />
-          </div>
+        <label for="clearSearchNew">${uiLabelMap.ProductNewSearch}</label>
+        <input type="radio" name="clearSearch" id="clearSearchNew" value="Y" checked="checked"/>
+        <label for="clearSearchRefine">${uiLabelMap.ProductRefineSearch}</label>
+        <input type="radio" name="clearSearch" id="clearSearchRefine" value="N"/>
       </div>
-    </#if>
+    </div>
+  </#if>
     <div>
-      <input type="submit" name="submit" class="button" value="${uiLabelMap.CommonFind}" />
+      <input type="submit" name="submit" class="button" value="${uiLabelMap.CommonFind}"/>
     </div>
-    <#if searchOptionsHistoryList?has_content>
-      <h2>${uiLabelMap.OrderLastSearches}...</h2>
+  <#if searchOptionsHistoryList?has_content>
+    <h2>${uiLabelMap.OrderLastSearches}...</h2>
+    <div>
+      <a href="<@ofbizUrl>clearSearchOptionsHistoryList</@ofbizUrl>" class="button">
+        ${uiLabelMap.OrderClearSearchHistory}
+      </a>
+      <h3>${uiLabelMap.OrderClearSearchHistoryNote}</h3>
+    </div>
+    <#list searchOptionsHistoryList as searchOptions>
+    <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
       <div>
-        <a href="<@ofbizUrl>clearSearchOptionsHistoryList</@ofbizUrl>" class="button">${uiLabelMap.OrderClearSearchHistory}</a>
-        <h3>${uiLabelMap.OrderClearSearchHistoryNote}</h3>
+        <p>${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}</p>
+        <a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>"
+           class="button">${uiLabelMap.CommonSearch}</a>
+        <a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>"
+           class="button">${uiLabelMap.CommonRefine}</a>
       </div>
-      <#list searchOptionsHistoryList as searchOptions>
-      <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
-        <div>
-          <p>${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}</p>
-          <a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>" class="button">${uiLabelMap.CommonSearch}</a>
-          <a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>" class="button">${uiLabelMap.CommonRefine}</a>
-        </div>
-        <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
-        <#list constraintStrings as constraintString>
-          <p> - ${constraintString}</p>
-        </#list>
-        <#if searchOptions_has_next>
-          
-        </#if>
+      <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
+      <#list constraintStrings as constraintString>
+        <p> - ${constraintString}</p>
       </#list>
-    </#if>
+      <#if searchOptions_has_next>
+      </#if>
+    </#list>
+  </#if>
   </fieldset>
 </form>
Index: specialpurpose/ecommerce/template/catalog/AjaxBreadCrumbs.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/AjaxBreadCrumbs.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/AjaxBreadCrumbs.ftl	(working copy)
@@ -18,53 +18,45 @@
 -->
 
 <div class="breadcrumbs">
-<#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>        
-<#if isDefaultTheme>
-  <a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a> &gt;
-<#else>
+  <#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>
+  <#if isDefaultTheme>
+    <a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a> &gt;
+  <#else>
   <ul>
     <li>
       <a href="<@ofbizUrl>main</@ofbizUrl>" class="linktext">${uiLabelMap.CommonMain}</a>
     </li>
-</#if>    
-    <#-- Show the category branch -->
-    <#if productCategoryTrail??>
-        <#list productCategoryTrail as trail>
-          <#if !isDefaultTheme>                 
-            <li>
-              <a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>" class="linktext">
-                <#if trail.title??>
-                  ${trail.title}
-                <#else>
-                  ${trail.productCategoryId}
-                </#if>
-              </a>
-            </li>
+  </#if>
+  <#-- Show the category branch -->
+  <#if productCategoryTrail??>
+    <#list productCategoryTrail as trail>
+      <#if !isDefaultTheme>
+        <li>
+          <a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>"
+              class="linktext">
+            <#if trail.title??>
+              ${trail.title}
+            <#else>
+              ${trail.productCategoryId}
+            </#if>
+          </a>
+        </li>
+      <#else>
+        <a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>"
+            class="linktext">
+          <#if trail.title??>
+            ${trail.title} >
           <#else>
-            <a href="<@ofbizCatalogAltUrl productCategoryId=trail.productCategoryId previousCategoryId=trail.parentCategory!""/>" class="linktext">
-              <#if trail.title??>
-                ${trail.title} >
-              <#else>
-                ${trail.productCategoryId} >
-              </#if>
-            </a>
+            ${trail.productCategoryId} >
           </#if>
-        </#list>
-    </#if>
-    <#if !isDefaultTheme>                 
-      <li>
-        <a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>" class="linktext">
-          <#if currentCategoryName??>
-            ${currentCategoryName}
-          <#elseif currentCategoryDescription??>
-            ${currentCategoryDescription}
-          <#else>
-            ${currentCategoryId}
-          </#if>
         </a>
-      </li>
-    <#else>
-      <a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>" class="linktext">
+      </#if>
+    </#list>
+  </#if>
+  <#if !isDefaultTheme>
+    <li>
+      <a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>"
+          class="linktext">
         <#if currentCategoryName??>
           ${currentCategoryName}
         <#elseif currentCategoryDescription??>
@@ -73,8 +65,20 @@
           ${currentCategoryId}
         </#if>
       </a>
-    </#if>
+    </li>
+  <#else>
+    <a href="<@ofbizCatalogAltUrl productCategoryId=currentCategoryId previousCategoryId=parameters.parentCategoryStr/>"
+        class="linktext">
+      <#if currentCategoryName??>
+        ${currentCategoryName}
+      <#elseif currentCategoryDescription??>
+        ${currentCategoryDescription}
+      <#else>
+        ${currentCategoryId}
+      </#if>
+    </a>
+  </#if>
   </ul>
 </div>
-<br />
+<br/>
 
Index: specialpurpose/ecommerce/template/catalog/ChooseCatalog.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ChooseCatalog.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ChooseCatalog.ftl	(working copy)
@@ -18,28 +18,30 @@
 -->
 <#assign catalogCol = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogIdsAvailable(request)!>
 <#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)!>
-<#assign currentCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
+<#assign currentCatalogName =
+    Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
 
 <#-- Only show if there is more than 1 (one) catalog, no sense selecting when there is only one option... -->
 <#if (catalogCol?size > 1)>
-<div id ="choosecatalog" class="screenlet">
-  <div class="screenlet-title-bar">
-    <ul>
-      <li class="h3">${uiLabelMap.ProductChooseCatalog}</li>
-    </ul>
-    <br class="clear"/>
+  <div id="choosecatalog" class="screenlet">
+    <div class="screenlet-title-bar">
+      <ul>
+        <li class="h3">${uiLabelMap.ProductChooseCatalog}</li>
+      </ul>
+      <br class="clear"/>
+    </div>
+    <div class="screenlet-body">
+      <form name="choosecatalogform" method="post" action="<@ofbizUrl>main</@ofbizUrl>">
+        <select name='CURRENT_CATALOG_ID' class='selectBox' onchange="submit()">
+          <option value='${currentCatalogId}'>${currentCatalogName}</option>
+          <option value='${currentCatalogId}'></option>
+          <#list catalogCol as catalogId>
+            <#assign thisCatalogName =
+                Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, catalogId)>
+            <option value='${catalogId}'>${thisCatalogName}</option>
+          </#list>
+        </select>
+      </form>
+    </div>
   </div>
-  <div class="screenlet-body">
-    <form name="choosecatalogform" method="post" action="<@ofbizUrl>main</@ofbizUrl>">
-      <select name='CURRENT_CATALOG_ID' class='selectBox' onchange="submit()">
-        <option value='${currentCatalogId}'>${currentCatalogName}</option>
-        <option value='${currentCatalogId}'></option>
-        <#list catalogCol as catalogId>
-          <#assign thisCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, catalogId)>
-          <option value='${catalogId}'>${thisCatalogName}</option>
-        </#list>
-      </select>
-    </form>
-  </div>
-</div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/ConfigProductDetail.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ConfigProductDetail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ConfigProductDetail.ftl	(working copy)
@@ -24,341 +24,380 @@
 <#-- virtual product javascript -->
 ${virtualJavaScript!}
 <script language="JavaScript" type="text/javascript">
-<!--
-    var detailImageUrl = null;
-     function setAddProductId(name) {
-        document.addform.add_product_id.value = name;
-        if (document.addform.quantity == null) return;
-        if (name == 'NULL' || isVirtual(name) == true) {
-            document.addform.quantity.disabled = true;
-        } else {
-            document.addform.quantity.disabled = false;
-        }
-     }
-     function isVirtual(product) {
-        var isVirtual = false;
-        <#if virtualJavaScript??>
-        for (i = 0; i < VIR.length; i++) {
-            if (VIR[i] == product) {
-                isVirtual = true;
-            }
-        }
-        </#if>
-        return isVirtual;
-     }
-
-    function addItem() {
-        document.configform.action = document.addform.action;
-        document.configform.quantity.value = document.addform.quantity.value;
-        document.configform.submit();
+  <!--
+  var detailImageUrl = null;
+  function setAddProductId(name) {
+    document.addform.add_product_id.value = name;
+    if (document.addform.quantity == null) return;
+    if (name == 'NULL' || isVirtual(name) == true) {
+      document.addform.quantity.disabled = true;
+    } else {
+      document.addform.quantity.disabled = false;
     }
-    function verifyConfig() {
-        document.configform.submit();
+  }
+  function isVirtual(product) {
+    var isVirtual = false;
+  <#if virtualJavaScript??>
+    for (i = 0; i < VIR.length; i++) {
+      if (VIR[i] == product) {
+        isVirtual = true;
+      }
     }
+  </#if>
+    return isVirtual;
+  }
 
-    function popupDetail() {
-        var defaultDetailImage = "${firstDetailImage?default(mainDetailImageUrl?default("_NONE_"))}";
-        if (defaultDetailImage == null || defaultDetailImage == "null" || defaultDetailImage == "") {
-            defaultDetailImage = "_NONE_";
-        }
+  function addItem() {
+    document.configform.action = document.addform.action;
+    document.configform.quantity.value = document.addform.quantity.value;
+    document.configform.submit();
+  }
+  function verifyConfig() {
+    document.configform.submit();
+  }
 
-        if (detailImageUrl == null || detailImageUrl == "null") {
-            detailImageUrl = defaultDetailImage;
-        }
+  function popupDetail() {
+    var defaultDetailImage = "${firstDetailImage?default(mainDetailImageUrl?default("_NONE_"))}";
+    if (defaultDetailImage == null || defaultDetailImage == "null" || defaultDetailImage == "") {
+      defaultDetailImage = "_NONE_";
+    }
 
-        if (detailImageUrl == "_NONE_") {
-            hack = document.createElement('span');
-            hack.innerHTML="${uiLabelMap.CommonNoDetailImageAvailableToDisplay}";
-            showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonNoDetailImageAvailableToDisplay}");
-            return;
-        }
-        detailImageUrl = detailImageUrl.replace(/\&\#47;/g, "/");
-        popUp("<@ofbizUrl>detailImage?detail=" + detailImageUrl + "</@ofbizUrl>", 'detailImage', '400', '550');
+    if (detailImageUrl == null || detailImageUrl == "null") {
+      detailImageUrl = defaultDetailImage;
     }
 
-    function toggleAmt(toggle) {
-        if (toggle == 'Y') {
-            changeObjectVisibility("add_amount", "visible");
-        }
+    if (detailImageUrl == "_NONE_") {
+      hack = document.createElement('span');
+      hack.innerHTML = "${uiLabelMap.CommonNoDetailImageAvailableToDisplay}";
+      showErrorAlert("${uiLabelMap.CommonErrorMessage2}", "${uiLabelMap.CommonNoDetailImageAvailableToDisplay}");
+      return;
+    }
+    detailImageUrl = detailImageUrl.replace(/\&\#47;/g, "/");
+    popUp("<@ofbizUrl>detailImage?detail=" + detailImageUrl + "</@ofbizUrl>", 'detailImage', '400', '550');
+  }
 
-        if (toggle == 'N') {
-            changeObjectVisibility("add_amount", "hidden");
-        }
+  function toggleAmt(toggle) {
+    if (toggle == 'Y') {
+      changeObjectVisibility("add_amount", "visible");
     }
 
-    function findIndex(name) {
-        for (i = 0; i < OPT.length; i++) {
-            if (OPT[i] == name) {
-                return i;
-            }
-        }
-        return -1;
+    if (toggle == 'N') {
+      changeObjectVisibility("add_amount", "hidden");
     }
+  }
 
-    function getList(name, index, src) {
-        currentFeatureIndex = findIndex(name);
+  function findIndex(name) {
+    for (i = 0; i < OPT.length; i++) {
+      if (OPT[i] == name) {
+        return i;
+      }
+    }
+    return -1;
+  }
 
-        if (currentFeatureIndex == 0) {
-            // set the images for the first selection
-            if (IMG[index] != null) {
-                if (document.images['mainImage'] != null) {
-                    document.images['mainImage'].src = IMG[index];
-                    detailImageUrl = DET[index];
-                }
-            }
+  function getList(name, index, src) {
+    currentFeatureIndex = findIndex(name);
 
-            // set the drop down index for swatch selection
-            document.forms["addform"].elements[name].selectedIndex = (index*1)+1;
+    if (currentFeatureIndex == 0) {
+      // set the images for the first selection
+      if (IMG[index] != null) {
+        if (document.images['mainImage'] != null) {
+          document.images['mainImage'].src = IMG[index];
+          detailImageUrl = DET[index];
         }
+      }
 
-        if (currentFeatureIndex < (OPT.length-1)) {
-            // eval the next list if there are more
-            var selectedValue = document.forms["addform"].elements[name].options[(index*1)+1].value;
-            eval("list" + OPT[(currentFeatureIndex+1)] + selectedValue + "()");
+      // set the drop down index for swatch selection
+      document.forms["addform"].elements[name].selectedIndex = (index * 1) + 1;
+    }
 
-            // set the product ID to NULL to trigger the alerts
-            setAddProductId('NULL');
-        } else {
-            // this is the final selection -- locate the selected index of the last selection
-            var indexSelected = document.forms["addform"].elements[name].selectedIndex;
+    if (currentFeatureIndex < (OPT.length - 1)) {
+      // eval the next list if there are more
+      var selectedValue = document.forms["addform"].elements[name].options[(index * 1) + 1].value;
+      eval("list" + OPT[(currentFeatureIndex + 1)] + selectedValue + "()");
 
-            // using the selected index locate the sku
-            var sku = document.forms["addform"].elements[name].options[indexSelected].value;
+      // set the product ID to NULL to trigger the alerts
+      setAddProductId('NULL');
+    } else {
+      // this is the final selection -- locate the selected index of the last selection
+      var indexSelected = document.forms["addform"].elements[name].selectedIndex;
 
-            // set the product ID
-            setAddProductId(sku);
+      // using the selected index locate the sku
+      var sku = document.forms["addform"].elements[name].options[indexSelected].value;
 
-            // check for amount box
-            toggleAmt(checkAmtReq(sku));
-        }
+      // set the product ID
+      setAddProductId(sku);
+
+      // check for amount box
+      toggleAmt(checkAmtReq(sku));
     }
- //-->
- </script>
+  }
+  //-->
+</script>
 
 <script language="JavaScript" type="text/javascript">
-<!--
+  <!--
 
-jQuery(document).ready(function () {
+  jQuery(document).ready(function () {
     jQuery('#configFormId').change(getConfigDetails)
-});
+  });
 
-function getConfigDetails(event) {
-        jQuery.ajax({
-            url: '<@ofbizUrl>getConfigDetailsEvent</@ofbizUrl>',
-            type: 'POST',
-            data: jQuery('#configFormId').serialize(),
-            success: function(data) {
-                  var totalPrice = data.totalPrice;
-                  var configId = data.configId;
-                  document.getElementById('totalPrice').innerHTML = totalPrice;
-                  document.addToShoppingList.configId.value = configId;
-                  event.stop();
-            }
-        });
-}
+  function getConfigDetails(event) {
+    jQuery.ajax({
+      url: '<@ofbizUrl>getConfigDetailsEvent</@ofbizUrl>',
+      type: 'POST',
+      data: jQuery('#configFormId').serialize(),
+      success: function (data) {
+        var totalPrice = data.totalPrice;
+        var configId = data.configId;
+        document.getElementById('totalPrice').innerHTML = totalPrice;
+        document.addToShoppingList.configId.value = configId;
+        event.stop();
+      }
+    });
+  }
 
--->
+  -->
 </script>
 
 <div id="productdetail">
-
 <table>
-
-  <#-- Category next/previous -->
-  <#if category??>
-    <tr>
-      <td colspan="2" align="right">
-        <#if previousProductId??>
-          <a href='<@ofbizUrl>product/~category_id=${categoryId!}/~product_id=${previousProductId!}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonPrevious}</a>&nbsp;|&nbsp;
-        </#if>
-        <a href="<@ofbizUrl>category/~category_id=${categoryId!}</@ofbizUrl>" class="buttontext">${(category.categoryName)?default(category.description)!}</a>
-        <#if nextProductId??>
-          &nbsp;|&nbsp;<a href='<@ofbizUrl>product/~category_id=${categoryId!}/~product_id=${nextProductId!}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonNext}</a>
-        </#if>
-      </td>
-    </tr>
-  </#if>
-
-  <tr><td colspan="2"></td></tr>
-
-  <#-- Product image/name/price -->
+<#-- Category next/previous -->
+<#if category??>
   <tr>
-    <td valign="top" width="0">
-      <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")!>
-      <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
-      <#if firstLargeImage?has_content>
-        <#assign productLargeImageUrl = firstLargeImage>
+    <td colspan="2" align="right">
+      <#if previousProductId??>
+        <a href='<@ofbizUrl>product/~category_id=${categoryId!}/~product_id=${previousProductId!}</@ofbizUrl>'
+           class="buttontext">${uiLabelMap.CommonPrevious}</a>&nbsp;|&nbsp;
       </#if>
-      <#if productLargeImageUrl?string?has_content>
-        <a href="javascript:popupDetail();"><img src='<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>' name='mainImage' vspace='5' hspace='5' class='cssImgXLarge' align='left' alt="" /></a>
+      <a href="<@ofbizUrl>category/~category_id=${categoryId!}</@ofbizUrl>" class="buttontext">
+      ${(category.categoryName)?default(category.description)!}
+      </a>
+      <#if nextProductId??>&nbsp;|&nbsp;
+        <a href='<@ofbizUrl>product/~category_id=${categoryId!}/~product_id=${nextProductId!}</@ofbizUrl>'
+           class="buttontext">${uiLabelMap.CommonNext}</a>
       </#if>
     </td>
+  </tr>
+</#if>
+  <tr>
+    <td colspan="2"></td>
+  </tr>
+<#-- Product image/name/price -->
+  <tr>
+    <td valign="top" width="0">
+    <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")!>
+    <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
+    <#if firstLargeImage?has_content>
+      <#assign productLargeImageUrl = firstLargeImage>
+    </#if>
+    <#if productLargeImageUrl?string?has_content>
+      <a href="javascript:popupDetail();">
+        <img src='<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>'
+             name='mainImage' vspace='5' hspace='5' class='cssImgXLarge' align='left' alt=""/>
+      </a>
+    </#if>
+    </td>
     <td align="right" valign="top">
       <h2>${productContentWrapper.get("PRODUCT_NAME", "html")!}</h2>
       <div>${productContentWrapper.get("DESCRIPTION", "html")!}</div>
       <div><b>${product.productId!}</b></div>
-      <#-- example of showing a certain type of feature with the product -->
-      <#if sizeProductFeatureAndAppls?has_content>
-        <div>
-          <#if (sizeProductFeatureAndAppls?size == 1)>
-            <#-- TODO : i18n -->
-            Size:
-          <#else>
-            Sizes Available:
-          </#if>
-          <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
-            ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>,</#if>
-          </#list>
+    <#-- example of showing a certain type of feature with the product -->
+    <#if sizeProductFeatureAndAppls?has_content>
+      <div>
+        <#if (sizeProductFeatureAndAppls?size == 1)>
+        <#-- TODO : i18n -->
+          Size:
+        <#else>
+          Sizes Available:
+        </#if>
+        <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
+        ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(
+        sizeProductFeatureAndAppl.productFeatureId))}
+          <#if sizeProductFeatureAndAppl_has_next>,</#if>
+        </#list>
+      </div>
+    </#if>
+    <#-- for prices:
+            - if totalPrice is present, use it (totalPrice is the price calculated from the parts)
+            - if price < competitivePrice, show competitive or "Compare At" price
+            - if price < listPrice, show list price
+            - if price < defaultPrice and defaultPrice < listPrice, show default
+            - if isSale show price with salePrice style and print "On Sale!"
+    -->
+    <#if totalPrice??>
+      <div>${uiLabelMap.ProductAggregatedPrice}:
+        <span id='totalPrice' class='basePrice'>
+          <@ofbizCurrency amount=totalPrice isoCode=totalPrice.currencyUsed/>
+        </span>
+      </div>
+    <#else>
+      <#if price.competitivePrice?? && price.price?? && price.price < price.competitivePrice>
+        <div>${uiLabelMap.ProductCompareAtPrice}:
+          <span class='basePrice'>
+            <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/>
+          </span>
         </div>
       </#if>
-
-      <#-- for prices:
-              - if totalPrice is present, use it (totalPrice is the price calculated from the parts)
-              - if price < competitivePrice, show competitive or "Compare At" price
-              - if price < listPrice, show list price
-              - if price < defaultPrice and defaultPrice < listPrice, show default
-              - if isSale show price with salePrice style and print "On Sale!"
-      -->
-      <#if totalPrice??>
-        <div>${uiLabelMap.ProductAggregatedPrice}: <span id='totalPrice' class='basePrice'><@ofbizCurrency amount=totalPrice isoCode=totalPrice.currencyUsed/></span></div>
-      <#else>
-      <#if price.competitivePrice?? && price.price?? && price.price < price.competitivePrice>
-        <div>${uiLabelMap.ProductCompareAtPrice}: <span class='basePrice'><@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/></span></div>
-      </#if>
       <#if price.listPrice?? && price.price?? && price.price < price.listPrice>
-        <div>${uiLabelMap.ProductListPrice}: <span class='basePrice'><@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/></span></div>
+        <div>${uiLabelMap.ProductListPrice}:
+          <span class='basePrice'>
+            <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/>
+          </span>
+        </div>
       </#if>
-      <#if price.listPrice?? && price.defaultPrice?? && price.price?? && price.price < price.defaultPrice && price.defaultPrice < price.listPrice>
-        <div>${uiLabelMap.ProductRegularPrice}: <span class='basePrice'><@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed/></span></div>
+      <#if price.listPrice?? && price.defaultPrice?? && price.price?? &&
+      price.price < price.defaultPrice && price.defaultPrice < price.listPrice>
+        <div>${uiLabelMap.ProductRegularPrice}:
+          <span class='basePrice'>
+            <@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed/>
+          </span>
+        </div>
       </#if>
       <div>
-
-          <#if price.isSale?? && price.isSale>
-            <span class='salePrice'>${uiLabelMap.OrderOnSale}!</span>
-            <#assign priceStyle = "salePrice">
-          <#else>
-            <#assign priceStyle = "regularPrice">
-          </#if>
-            ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> from </#if><span class='${priceStyle}'><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/></span>
-
+        <#if price.isSale?? && price.isSale>
+          <span class='salePrice'>${uiLabelMap.OrderOnSale}!</span>
+          <#assign priceStyle = "salePrice">
+        <#else>
+          <#assign priceStyle = "regularPrice">
+        </#if>
+      ${uiLabelMap.OrderYourPrice}:
+        <#if "Y" = product.isVirtual!> from </#if>
+          <span class='${priceStyle}'>
+            <@ofbizCurrency amount=price.price isoCode=price.currencyUsed/>
+          </span>
       </div>
       <#if price.listPrice?? && price.price?? && price.price < price.listPrice>
         <#assign priceSaved = price.listPrice - price.price>
         <#assign percentSaved = (priceSaved / price.listPrice) * 100>
-        <div>${uiLabelMap.OrderSave}: <span class="basePrice"><@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)</span></div>
-      </#if>
-      </#if>
-
-      <#-- Included quantities/pieces -->
-      <#if product.quantityIncluded?? && product.quantityIncluded != 0>
-        <div>${uiLabelMap.OrderIncludes}:
-          ${product.quantityIncluded!}
-          ${product.quantityUomId!}
+        <div>${uiLabelMap.OrderSave}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)
+          </span>
         </div>
       </#if>
-      <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
-        <div>${uiLabelMap.OrderPieces}:
-          ${product.piecesIncluded}
-        </div>
-      </#if>
-      <#if daysToShip??>
-        <div>${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}</div>
-      </#if>
+    </#if>
+    <#-- Included quantities/pieces -->
+    <#if product.quantityIncluded?? && product.quantityIncluded != 0>
+      <div>
+        ${uiLabelMap.OrderIncludes}:${product.quantityIncluded!}${product.quantityUomId!}
+      </div>
+    </#if>
+    <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
+      <div>
+        ${uiLabelMap.OrderPieces}:${product.piecesIncluded}
+      </div>
+    </#if>
+    <#if daysToShip??>
+      <div>
+        ${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}
+      </div>
+    </#if>
 
-      <#-- show tell a friend details only in ecommerce application -->
+    <#-- show tell a friend details only in ecommerce application -->
       <div>&nbsp;</div>
       <div>
-        <a href="javascript:popUpSmall('<@ofbizUrl>tellafriend?productId=${product.productId}</@ofbizUrl>','tellafriend');" class="buttontext">${uiLabelMap.CommonTellAFriend}</a>
+        <a href="javascript:popUpSmall('<@ofbizUrl>tellafriend?productId=${product.productId}</@ofbizUrl>','tellafriend');"
+            class="buttontext">${uiLabelMap.CommonTellAFriend}</a>
       </div>
 
-      <#if disFeatureList?? && 0 < disFeatureList.size()>
-        <p>&nbsp;</p>
-        <#list disFeatureList as currentFeature>
+    <#if disFeatureList?? && 0 < disFeatureList.size()>
+      <p>&nbsp;</p>
+      <#list disFeatureList as currentFeature>
+        <div>
+        ${currentFeature.productFeatureTypeId}:&nbsp;${currentFeature.description}
+        </div>
+      </#list>
+      <div>&nbsp;</div>
+    </#if>
+
+      <form method="post"
+          action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
+          name="addform" style='margin: 0;'>
+      <#assign inStock = true>
+      <#-- Variant Selection -->
+      <#if product.isVirtual?? && product.isVirtual?upper_case == "Y">
+        <#if variantTree?? && 0 < variantTree.size()>
+          <#list featureSet as currentType>
             <div>
-                ${currentFeature.productFeatureTypeId}:&nbsp;${currentFeature.description}
+              <select name="FT${currentType}" onchange="javascript:getList(this.name, (this.selectedIndex-1), 1);">
+                <option>${featureTypes.get(currentType)}</option>
+              </select>
             </div>
-        </#list>
-            <div>&nbsp;</div>
-      </#if>
-
-      <form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addform" style='margin: 0;'>
-        <#assign inStock = true>
-        <#-- Variant Selection -->
-        <#if product.isVirtual?? && product.isVirtual?upper_case == "Y">
-          <#if variantTree?? && 0 < variantTree.size()>
-            <#list featureSet as currentType>
-              <div>
-                <select name="FT${currentType}" onchange="javascript:getList(this.name, (this.selectedIndex-1), 1);">
-                  <option>${featureTypes.get(currentType)}</option>
-                </select>
-              </div>
-            </#list>
-            <input type='hidden' name="product_id" value='${product.productId}' />
-            <input type='hidden' name="add_product_id" value='NULL' />
-          <#else>
-            <input type='hidden' name="product_id" value='${product.productId}' />
-            <input type='hidden' name="add_product_id" value='NULL' />
+          </#list>
+          <input type='hidden' name="product_id" value='${product.productId}'/>
+          <input type='hidden' name="add_product_id" value='NULL'/>
+        <#else>
+          <input type='hidden' name="product_id" value='${product.productId}'/>
+          <input type='hidden' name="add_product_id" value='NULL'/>
+          <div class='tabletext'><b>${uiLabelMap.ProductItemOutOfStock}.</b></div>
+          <#assign inStock = false>
+        </#if>
+      <#else>
+        <input type='hidden' name="product_id" value='${product.productId}'/>
+        <input type='hidden' name="add_product_id" value='${product.productId}'/>
+        <#if productNotAvailable??>
+          <#assign isStoreInventoryRequired =
+          Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
+          .isStoreInventoryRequired(request, product)>
+          <#if isStoreInventoryRequired>
             <div class='tabletext'><b>${uiLabelMap.ProductItemOutOfStock}.</b></div>
             <#assign inStock = false>
+          <#else>
+            <div class='tabletext'><b>${product.inventoryMessage!}</b></div>
           </#if>
+        </#if>
+      </#if>
+    </td>
+  </tr>
+  <tr>
+    <td colspan="2" align="right">
+    <#-- check to see if introductionDate hasn't passed yet -->
+    <#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
+      <p>&nbsp;</p>
+      <div class='tabletext' style='color: red;'>${uiLabelMap.ProductProductNotYetMadeAvailable}.</div>
+    <#-- check to see if salesDiscontinuationDate has passed -->
+    <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
+      <div class='tabletext' style='color: red;'>${uiLabelMap.ProductProductNoLongerAvailable}.</div>
+    <#-- check to see if the product requires inventory check and has inventory -->
+    <#else>
+      <#if inStock>
+        <#if product.requireAmount?default("N") == "Y">
+          <#assign hiddenStyle = "visible">
         <#else>
-          <input type='hidden' name="product_id" value='${product.productId}' />
-          <input type='hidden' name="add_product_id" value='${product.productId}' />
-          <#if productNotAvailable??>
-            <#assign isStoreInventoryRequired = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryRequired(request, product)>
-            <#if isStoreInventoryRequired>
-              <div class='tabletext'><b>${uiLabelMap.ProductItemOutOfStock}.</b></div>
-              <#assign inStock = false>
-            <#else>
-              <div class='tabletext'><b>${product.inventoryMessage!}</b></div>
-            </#if>
-          </#if>
+          <#assign hiddenStyle = "hidden">
         </#if>
-
-        </td></tr><tr><td colspan="2" align="right">
-
-        <#-- check to see if introductionDate hasn't passed yet -->
-        <#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
-          <p>&nbsp;</p>
-          <div class='tabletext' style='color: red;'>${uiLabelMap.ProductProductNotYetMadeAvailable}.</div>
-        <#-- check to see if salesDiscontinuationDate has passed -->
-        <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
-          <div class='tabletext' style='color: red;'>${uiLabelMap.ProductProductNoLongerAvailable}.</div>
-        <#-- check to see if the product requires inventory check and has inventory -->
+        <div id="add_amount" class="${hiddenStyle}">
+          <span style="white-space: nowrap;"><b>Amount:</b></span>&nbsp;
+          <input type="text" size="5" name="add_amount" value=""/>
+        </div>
+        <#if !configwrapper.isCompleted()>
+          <div>[${uiLabelMap.EcommerceProductNotConfigured}]&nbsp;
+            <input type="text" size="5" name="quantity" value="0" disabled="disabled"/></div>
         <#else>
-          <#if inStock>
-            <#if product.requireAmount?default("N") == "Y">
-              <#assign hiddenStyle = "visible">
-            <#else>
-              <#assign hiddenStyle = "hidden">
-            </#if>
-            <div id="add_amount" class="${hiddenStyle}">
-              <span style="white-space: nowrap;"><b>Amount:</b></span>&nbsp;
-              <input type="text" size="5" name="add_amount" value="" />
-            </div>
-            <#if !configwrapper.isCompleted()>
-              <div>[${uiLabelMap.EcommerceProductNotConfigured}]&nbsp;
-              <input type="text" size="5" name="quantity" value="0" disabled="disabled" /></div>
-            <#else>
-              <a href="javascript:addItem()" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>&nbsp;
-              <input type="text" size="5" name="quantity" value="1" />
-                <#if minimumQuantity?? &&  minimumQuantity &gt; 0>
-                  Minimum order quantity is ${minimumQuantity}.
-               </#if>
-            </#if>
+          <a href="javascript:addItem()" class="buttontext">
+                <span style="white-space: nowrap;">
+                ${uiLabelMap.OrderAddToCart}
+                </span>
+          </a>&nbsp;
+          <input type="text" size="5" name="quantity" value="1"/>
+          <#if minimumQuantity?? &&  minimumQuantity &gt; 0>
+            Minimum order quantity is ${minimumQuantity}.
           </#if>
-          <#if requestParameters.category_id??>
-            <input type='hidden' name='category_id' value='${requestParameters.category_id}' />
-          </#if>
         </#if>
+      </#if>
+      <#if requestParameters.category_id??>
+        <input type='hidden' name='category_id' value='${requestParameters.category_id}'/>
+      </#if>
+    </#if>
       </form>
-    <div>
+      <div>
       <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
-
-        <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
-          <input type="hidden" name="productId" value="${product.productId}" />
-          <input type="hidden" name="product_id" value="${product.productId}" />
-          <input type="hidden" name="configId" value="${configId!}" />
+        <form name="addToShoppingList" method="post"
+              action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
+          <input type="hidden" name="productId" value="${product.productId}"/>
+          <input type="hidden" name="product_id" value="${product.productId}"/>
+          <input type="hidden" name="configId" value="${configId!}"/>
           <select name="shoppingListId">
             <#if shoppingLists?has_content>
               <#list shoppingLists as shoppingList>
@@ -369,88 +408,98 @@
             <option value="">${uiLabelMap.OrderNewShoppingList}</option>
           </select>
           &nbsp;&nbsp;
-          <input type="text" size="5" name="quantity" value="1" />
-          <a href="javascript:document.addToShoppingList.submit();" class="buttontext">[${uiLabelMap.OrderAddToShoppingList}]</a>
+          <input type="text" size="5" name="quantity" value="1"/>
+          <a href="javascript:document.addToShoppingList.submit();" class="buttontext">
+            [${uiLabelMap.OrderAddToShoppingList}]
+          </a>
         </form>
-      <#else> <br />
-        ${uiLabelMap.OrderYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBeLogged}</a>
-        ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
+      <#else> <br/>
+      ${uiLabelMap.OrderYouMust}
+        <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBeLogged}</a>
+      ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
       </#if>
       </div>
-      <#-- Prefill first select box (virtual products only) -->
-      <#if variantTree?? && 0 < variantTree.size()>
-        <script language="JavaScript" type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
-      </#if>
+    <#-- Prefill first select box (virtual products only) -->
+    <#if variantTree?? && 0 < variantTree.size()>
+      <script language="JavaScript" type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
+    </#if>
 
-      <#-- Swatches (virtual products only) -->
-      <#if variantSample?? && 0 < variantSample.size()>
-        <#assign imageKeys = variantSample.keySet()>
-        <#assign imageMap = variantSample>
-        <p>&nbsp;</p>
-        <table cellspacing="0" cellpadding="0">
-          <tr>
-            <#assign maxIndex = 7>
-            <#assign indexer = 0>
-            <#list imageKeys as key>
-              <#assign swatchProduct = imageMap.get(key)>
-              <#if swatchProduct?has_content && indexer < maxIndex>
-                <#assign imageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")!>
-                <#if !imageUrl?string?has_content>
-                  <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")!>
-                </#if>
-                <#if !imageUrl?string?has_content>
-                  <#assign imageUrl = "/images/defaultImage.jpg">
-                </#if>
-                <td align="center" valign="bottom">
-                  <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);"><img src="<@ofbizContentUrl>${contentPathPrefix!}${imageUrl}</@ofbizContentUrl>" class='cssImgSmall' alt="" /></a>
-                  <br />
-                  <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);" class="buttontext">${key}</a>
-                </td>
+    <#-- Swatches (virtual products only) -->
+    <#if variantSample?? && 0 < variantSample.size()>
+      <#assign imageKeys = variantSample.keySet()>
+      <#assign imageMap = variantSample>
+      <p>&nbsp;</p>
+      <table cellspacing="0" cellpadding="0">
+        <tr>
+          <#assign maxIndex = 7>
+          <#assign indexer = 0>
+          <#list imageKeys as key>
+            <#assign swatchProduct = imageMap.get(key)>
+            <#if swatchProduct?has_content && indexer < maxIndex>
+              <#assign imageUrl =
+              Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
+              .getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")!>
+              <#if !imageUrl?string?has_content>
+                <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")!>
               </#if>
-              <#assign indexer = indexer + 1>
-            </#list>
-            <#if (indexer > maxIndex)>
-              <div><b>${uiLabelMap.OrderMoreOptionsAvailable}.</b></div>
+              <#if !imageUrl?string?has_content>
+                <#assign imageUrl = "/images/defaultImage.jpg">
+              </#if>
+              <td align="center" valign="bottom">
+                <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);">
+                  <img src="<@ofbizContentUrl>${contentPathPrefix!}${imageUrl}</@ofbizContentUrl>"
+                       class='cssImgSmall' alt=""/>
+                </a>
+                <br/>
+                <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);" class="buttontext">
+                ${key}
+                </a>
+              </td>
             </#if>
-          </tr>
-        </table>
-      </#if>
+            <#assign indexer = indexer + 1>
+          </#list>
+          <#if (indexer > maxIndex)>
+            <div><b>${uiLabelMap.OrderMoreOptionsAvailable}.</b></div>
+          </#if>
+        </tr>
+      </table>
+    </#if>
     </td>
   </tr>
-
-
-
-  <#-- Long description of product -->
+<#-- Long description of product -->
   <tr>
     <td colspan="2">
       <div>${productContentWrapper.get("LONG_DESCRIPTION", "html")!}</div>
     </td>
   </tr>
-
-  <tr><td colspan="2"><hr class='sepbar'/></td></tr>
-
-  <#-- Any attributes/etc may go here -->
-  <#-- Product Configurator -->
   <tr>
     <td colspan="2">
-      <form name="configform" id="configFormId" method="post" action="<@ofbizUrl>product<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
-        <input type='hidden' name='add_product_id' value='${product.productId}' />
-        <input type='hidden' name='add_category_id' value='' />
-        <input type='hidden' name='quantity' value='1' />
+      <hr class='sepbar'/>
+    </td>
+  </tr>
+<#-- Any attributes/etc may go here -->
+<#-- Product Configurator -->
+  <tr>
+    <td colspan="2">
+      <form name="configform" id="configFormId" method="post"
+            action="<@ofbizUrl>product<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
+        <input type='hidden' name='add_product_id' value='${product.productId}'/>
+        <input type='hidden' name='add_category_id' value=''/>
+        <input type='hidden' name='quantity' value='1'/>
 
-        <input type='hidden' name='product_id' value='${product.productId}' />
-        <table >
+        <input type='hidden' name='product_id' value='${product.productId}'/>
+        <table>
           <tr>
             <td>
-                <div>
-                    <a href="javascript:verifyConfig();" class="buttontext">${uiLabelMap.OrderVerifyConfiguration}</a>
-                </div>
+              <div>
+                <a href="javascript:verifyConfig();" class="buttontext">${uiLabelMap.OrderVerifyConfiguration}</a>
+              </div>
             </td>
           </tr>
 
-          <#assign counter = 0>
-          <#assign questions = configwrapper.questions>
-          <#list questions as question>
+        <#assign counter = 0>
+        <#assign questions = configwrapper.questions>
+        <#list questions as question>
           <tr>
             <td>
               <div>${question.question}</div>
@@ -459,137 +508,154 @@
                 <div>${StringUtil.wrapString(question.description!)}</div>
                 <#assign instructions = question.content.get("INSTRUCTIONS", "html")!>
                 <#if instructions?has_content>
-                  <a href="javascript:showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${instructions}");" class="buttontext">Instructions</a>
+                  <a href="javascript:showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${instructions}");"
+                  class="buttontext">Instructions</a>
                 </#if>
                 <#assign image = question.content.get("IMAGE_URL", "url")!>
                 <#if image?string?has_content>
-                  <img src='<@ofbizContentUrl>${contentPathPrefix!}${image!}</@ofbizContentUrl>' vspace='5' hspace='5' class='cssImgXLarge' align='left' alt="" />
+                  <img src='<@ofbizContentUrl>${contentPathPrefix!}${image!}</@ofbizContentUrl>'
+                       vspace='5' hspace='5' class='cssImgXLarge' align='left' alt=""/>
                 </#if>
               <#else>
-                <div><a href='#${question.getConfigItem().getString("configItemId")}' class="buttontext">Details</a></div>
+                <div>
+                  <a href='#${question.getConfigItem().getString("configItemId")}' class="buttontext">Details</a>
+                </div>
               </#if>
             </td>
           </tr>
           <tr>
             <td>
-            <#if question.isStandard()>
+              <#if question.isStandard()>
               <#-- Standard item: all the options are always included -->
-              <#assign options = question.options>
-              <#list options as option>
-                <div>${option.description} <#if !option.isAvailable()> (*)</#if></div>
-              </#list>
-            <#else>
-              <#if question.isSingleChoice()>
-                <#-- Single choice question -->
                 <#assign options = question.options>
-                <#assign selectedOption = question.getSelected()!>
-                <#assign selectedPrice = 0.0>
-                <#if selectedOption?has_content>
-                  <#assign selectedPrice = selectedOption.getPrice()>
-                </#if>
-                <#-- The single choice input can be implemented with radio buttons or a select field -->
-                <#if renderSingleChoiceWithRadioButtons?? && "Y" == renderSingleChoiceWithRadioButtons>
-                <#-- This is the radio button implementation -->
-                <#if !question.isMandatory()>
-                  <div><input type="radio" name='${counter}' value='<#if !question.isSelected()>checked</#if>' /> No option</div>
-                </#if>
-                <#assign optionCounter = 0>
                 <#list options as option>
-                  <#assign componentCounter = 0>
-                  <#if showOffsetPrice?? && "Y" == showOffsetPrice>
-                    <#assign shownPrice = option.price - selectedPrice>
-                  <#else>
-                    <#assign shownPrice = option.price>
+                  <div>${option.description} <#if !option.isAvailable()> (*)</#if></div>
+                </#list>
+              <#else>
+                <#if question.isSingleChoice()>
+                <#-- Single choice question -->
+                  <#assign options = question.options>
+                  <#assign selectedOption = question.getSelected()!>
+                  <#assign selectedPrice = 0.0>
+                  <#if selectedOption?has_content>
+                    <#assign selectedPrice = selectedOption.getPrice()>
                   </#if>
+                <#-- The single choice input can be implemented with radio buttons or a select field -->
+                  <#if renderSingleChoiceWithRadioButtons?? && "Y" == renderSingleChoiceWithRadioButtons>
+                  <#-- This is the radio button implementation -->
+                    <#if !question.isMandatory()>
+                      <div>
+                        <input type="radio" name='${counter}' value='<#if !question.isSelected()>checked</#if>'/>
+                        No option
+                      </div>
+                    </#if>
+                    <#assign optionCounter = 0>
+                    <#list options as option>
+                      <#assign componentCounter = 0>
+                      <#if showOffsetPrice?? && "Y" == showOffsetPrice>
+                        <#assign shownPrice = option.price - selectedPrice>
+                      <#else>
+                        <#assign shownPrice = option.price>
+                      </#if>
                     <#-- Render virtual compoennts -->
-                    <#if option.hasVirtualComponent()>
-                      <div >
-                        <input type='radio' name='${counter}' id="${counter}_${optionCounter}" value='${optionCounter}' onclick="javascript:checkOptionVariants('${counter}_${optionCounter}');" />
+                      <#if option.hasVirtualComponent()>
+                        <div>
+                          <input type='radio' name='${counter}' id="${counter}_${optionCounter}"
+                                 value='${optionCounter}'
+                                 onclick="javascript:checkOptionVariants('${counter}_${optionCounter}');"/>
                         ${option.description} <#if !option.isAvailable()> (*)</#if>
-                        <#assign components = option.getComponents()>
-                        <#list components as component>
-                          <#if (option.isVirtualComponent(component))>
+                          <#assign components = option.getComponents()>
+                          <#list components as component>
+                            <#if (option.isVirtualComponent(component))>
                             ${setRequestAttribute("inlineProductId", component.productId)}
                             ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)}
                             ${setRequestAttribute("addJavaScript", componentCounter)}
                             ${screens.render(inlineProductDetailScreen)}
-                            <#assign componentCounter = componentCounter + 1>
-                          </#if>
-                        </#list>
-                      </div>
-                    <#else>
-                      <div>
-                        <input type="radio" name='${counter}' value='${optionCounter}' <#if option.isSelected() || (!question.isSelected() && optionCounter == 0 && question.isMandatory())>checked="checked"</#if> />
+                              <#assign componentCounter = componentCounter + 1>
+                            </#if>
+                          </#list>
+                        </div>
+                      <#else>
+                        <div>
+                          <input type="radio" name='${counter}' value='${optionCounter}'
+                                 <#if option.isSelected() || (!question.isSelected() && optionCounter == 0 && question.isMandatory())>checked="checked"</#if>/>
                         ${option.description}&nbsp;
-                        <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/>&nbsp;</#if>
-                        <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/>&nbsp;</#if>
-                        <#if !option.isAvailable()>(*)</#if>
-                      </div>
-                    </#if>
-                  <#assign optionCounter = optionCounter + 1>
-                </#list>
-                <#else>
-                <#-- And this is the select box implementation -->
-                <select name='${counter}'>
-                <#if !question.isMandatory()>
-                  <option value=''>---</option>
-                </#if>
-                <#assign options = question.options>
-                <#assign optionCounter = 0>
-                <#list options as option>
-                  <#if showOffsetPrice?? && "Y" == showOffsetPrice>
-                    <#assign shownPrice = option.price - selectedPrice>
+                          <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/>
+                            &nbsp;</#if>
+                          <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/>
+                            &nbsp;</#if>
+                          <#if !option.isAvailable()>(*)</#if>
+                        </div>
+                      </#if>
+                      <#assign optionCounter = optionCounter + 1>
+                    </#list>
                   <#else>
-                    <#assign shownPrice = option.price>
+                  <#-- And this is the select box implementation -->
+                    <select name='${counter}'>
+                      <#if !question.isMandatory()>
+                        <option value=''>---</option>
+                      </#if>
+                      <#assign options = question.options>
+                      <#assign optionCounter = 0>
+                      <#list options as option>
+                        <#if showOffsetPrice?? && "Y" == showOffsetPrice>
+                          <#assign shownPrice = option.price - selectedPrice>
+                        <#else>
+                          <#assign shownPrice = option.price>
+                        </#if>
+                        <#if option.isSelected()>
+                          <#assign optionCounter = optionCounter + 1>
+                        </#if>
+                        <option value='${optionCounter}' <#if option.isSelected()>selected="selected"</#if>>
+                        ${option.description}&nbsp;
+                          <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/>
+                            &nbsp;</#if>
+                          <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/>
+                            &nbsp;</#if>
+                          <#if !option.isAvailable()> (*)</#if>
+                        </option>
+                        <#assign optionCounter = optionCounter + 1>
+                      </#list>
+                    </select>
                   </#if>
-                  <#if option.isSelected()>
-                    <#assign optionCounter = optionCounter + 1>
-                  </#if>
-                  <option value='${optionCounter}' <#if option.isSelected()>selected="selected"</#if>>
-                    ${option.description}&nbsp;
-                    <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/>&nbsp;</#if>
-                    <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/>&nbsp;</#if>
-                    <#if !option.isAvailable()> (*)</#if>
-                  </option>
-                  <#assign optionCounter = optionCounter + 1>
-                </#list>
-                </select>
-                </#if>
-              <#else>
+                <#else>
                 <#-- Multi choice question -->
-                <#assign options = question.options>
-                <#assign optionCounter = 0>
-                <#list options as option>
+                  <#assign options = question.options>
+                  <#assign optionCounter = 0>
+                  <#list options as option>
                     <#assign componentCounter = 0>
-                    <#-- Render virtual compoennts -->
+                  <#-- Render virtual compoennts -->
                     <#if option.hasVirtualComponent()>
-                      <div >
-                        <input type='CHECKBOX' name='${counter}' id="${counter}_${optionCounter}" value='${optionCounter}' onclick="javascript:checkOptionVariants('${counter}_${optionCounter}');" />
-                        ${option.description} <#if !option.isAvailable()> (*)</#if>
+                      <div>
+                        <input type='CHECKBOX' name='${counter}' id="${counter}_${optionCounter}"
+                               value='${optionCounter}'
+                               onclick="javascript:checkOptionVariants('${counter}_${optionCounter}');"/>
+                      ${option.description} <#if !option.isAvailable()> (*)</#if>
                         <#assign components = option.getComponents()>
                         <#list components as component>
                           <#if (option.isVirtualComponent(component))>
-                            ${setRequestAttribute("inlineProductId", component.productId)}
-                            ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)}
-                            ${setRequestAttribute("addJavaScript", componentCounter)}
-                            ${screens.render(inlineProductDetailScreen)}
+                          ${setRequestAttribute("inlineProductId", component.productId)}
+                          ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)}
+                          ${setRequestAttribute("addJavaScript", componentCounter)}
+                          ${screens.render(inlineProductDetailScreen)}
                             <#assign componentCounter = componentCounter + 1>
                           </#if>
                         </#list>
                       </div>
                     <#else>
-                    <div>
-                      <input type='CHECKBOX' name='${counter}' value='${optionCounter}' <#if option.isSelected()>checked="checked"</#if> />
-                      ${option.description} +<@ofbizCurrency amount=option.price isoCode=price.currencyUsed/><#if !option.isAvailable()> (*)</#if>
-                    </div>
+                      <div>
+                        <input type='CHECKBOX' name='${counter}'
+                               value='${optionCounter}' <#if option.isSelected()>checked="checked"</#if>/>
+                      ${option.description} +<@ofbizCurrency amount=option.price isoCode=price.currencyUsed/>
+                        <#if !option.isAvailable()> (*)</#if>
+                      </div>
                     </#if>
-                  <#assign optionCounter = optionCounter + 1>
-                </#list>
+                    <#assign optionCounter = optionCounter + 1>
+                  </#list>
+                </#if>
               </#if>
-            </#if>
             </td>
           </tr>
-
           <#assign counter = counter + 1>
         </#list>
         </table>
@@ -596,106 +662,126 @@
       </form>
     </td>
   </tr>
-
-
-  <#-- Product Reviews -->
+<#-- Product Reviews -->
   <tr>
     <td colspan="2">
       <div>${uiLabelMap.OrderCustomerReviews}:</div>
-      <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)>
-          <div>${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})</#if></div>
-      </#if>
+    <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)>
+      <div>${uiLabelMap.OrderAverageRating}: ${averageRating}
+        <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})</#if>
+      </div>
+    </#if>
     </td>
   </tr>
-  <tr><td colspan="2"><hr class='sepbar'/></td></tr>
-  <#if productReviews?has_content>
-    <#list productReviews as productReview>
-      <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false)>
-      <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)!>
-      <tr>
-        <td colspan="2">
-          <table border="0" cellpadding="0" cellspacing='0'>
-            <tr>
-              <td>
-                <div>${uiLabelMap.CommonBy}: <#if productReview.postedAnonymous?default("N") == "Y">${uiLabelMap.OrderAnonymous}<#else>${postedPerson.firstName} ${postedPerson.lastName}</#if></div>
-              </td>
-              <td>
-                <div>${uiLabelMap.CommonOn}: ${productReview.postedDateTime!}</div>
-              </td>
-              <td>
-                <div>${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}</div>
-              </td>
-            </tr>
-            <tr>
-              <td colspan="3">
-                <div>&nbsp;</div>
-              </td>
-            </tr>
-            <tr>
-              <td colspan="3">
-                <div>${productReview.productReview!}</div>
-              </td>
-            </tr>
-
-          </table>
-        </td>
-      </tr>
-    </#list>
+  <tr>
+    <td colspan="2">
+      <hr class='sepbar'/>
+    </td>
+  </tr>
+<#if productReviews?has_content>
+  <#list productReviews as productReview>
+    <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false)>
+    <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)!>
     <tr>
       <td colspan="2">
-        <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductReviewThisProduct}!</a>
+        <table border="0" cellpadding="0" cellspacing='0'>
+          <tr>
+            <td>
+              <div>${uiLabelMap.CommonBy}:
+                <#if productReview.postedAnonymous?default("N") == "Y">
+                ${uiLabelMap.OrderAnonymous}
+                <#else>
+                ${postedPerson.firstName} ${postedPerson.lastName}
+                </#if>
+              </div>
+            </td>
+            <td>
+              <div>${uiLabelMap.CommonOn}: ${productReview.postedDateTime!}</div>
+            </td>
+            <td>
+              <div>${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}</div>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="3">
+              <div>&nbsp;</div>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="3">
+              <div>${productReview.productReview!}</div>
+            </td>
+          </tr>
+        </table>
       </td>
     </tr>
-  <#else>
-    <tr>
-      <td colspan="2">
-        <div>${uiLabelMap.ProductProductNotReviewedYet}.</div>
-      </td>
-    </tr>
-    <tr>
-      <td colspan="2">
-        <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductBeTheFirstToReviewThisProduct}</a>
-      </td>
-    </tr>
+  </#list>
+  <tr>
+    <td colspan="2">
+      <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>"
+         class="buttontext">${uiLabelMap.ProductReviewThisProduct}!</a>
+    </td>
+  </tr>
+<#else>
+  <tr>
+    <td colspan="2">
+      <div>${uiLabelMap.ProductProductNotReviewedYet}.</div>
+    </td>
+  </tr>
+  <tr>
+    <td colspan="2">
+      <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>"
+         class="buttontext">${uiLabelMap.ProductBeTheFirstToReviewThisProduct}</a>
+    </td>
+  </tr>
 </table>
 </#if>
 
 <#-- Upgrades/Up-Sell/Cross-Sell -->
-  <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName>
+<#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName>
   <#assign targetRequest = "product">
   <#if targetRequestName?has_content>
     <#assign targetRequest = targetRequestName>
   </#if>
   <#if assocProducts?has_content>
-    <tr><td>&nbsp;</td></tr>
-    <tr><td colspan="2"><h2>${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2></td></tr>
+    <tr>
+      <td>&nbsp;</td>
+    </tr>
+    <tr>
+      <td colspan="2">
+        <h2>${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2>
+      </td>
+    </tr>
 
     <#list assocProducts as productAssoc>
-      <tr><td>
-        <div>
-          <a href='<@ofbizUrl>${targetRequest}/<#if categoryId??>~category_id=${categoryId}/</#if>~product_id=${productAssoc.productIdTo!}</@ofbizUrl>' class="buttontext">
+      <tr>
+        <td>
+          <div>
+            <a href='<@ofbizUrl>${targetRequest}/<#if categoryId??>~category_id=${categoryId}/</#if>~product_id=${productAssoc.productIdTo!}</@ofbizUrl>'
+               class="buttontext">
             ${productAssoc.productIdTo!}
-          </a>
-          - ${productAssoc.reason!}
-        </div>
-      </td></tr>
-      ${setRequestAttribute("optProductId", productAssoc.productIdTo)}
-      ${setRequestAttribute("listIndex", listIndex)}
-      ${setRequestAttribute("formNamePrefix", formNamePrefix)}
+            </a>
+            - ${productAssoc.reason!}
+          </div>
+        </td>
+      </tr>
+    ${setRequestAttribute("optProductId", productAssoc.productIdTo)}
+    ${setRequestAttribute("listIndex", listIndex)}
+    ${setRequestAttribute("formNamePrefix", formNamePrefix)}
       <#if targetRequestName?has_content>
-        ${setRequestAttribute("targetRequestName", targetRequestName)}
+      ${setRequestAttribute("targetRequestName", targetRequestName)}
       </#if>
       <tr>
         <td>
-          ${screens.render(productsummaryScreen)}
+        ${screens.render(productsummaryScreen)}
         </td>
       </tr>
       <#local listIndex = listIndex + 1>
 
     </#list>
-    ${setRequestAttribute("optProductId", "")}
-    ${setRequestAttribute("formNamePrefix", "")}
-    ${setRequestAttribute("targetRequestName", "")}
+  ${setRequestAttribute("optProductId", "")}
+  ${setRequestAttribute("formNamePrefix", "")}
+  ${setRequestAttribute("targetRequestName", "")}
   </#if>
 </#macro>
 <#assign productValue = product>
@@ -702,16 +788,20 @@
 <#assign listIndex = 1>
 ${setRequestAttribute("productValue", productValue)}
 
-<table >
+  <table>
   <#-- obsolete -->
-  <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" is made obsolete by these products:" formNamePrefix="obs" targetRequestName=""/>
+  <@associated assocProducts=obsoleteProducts beforeName="" showName="Y"
+      afterName=" is made obsolete by these products:" formNamePrefix="obs" targetRequestName=""/>
   <#-- cross sell -->
-  <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="You might be interested in these as well:" formNamePrefix="cssl" targetRequestName="crosssell"/>
+  <@associated assocProducts=crossSellProducts beforeName="" showName="N"
+      afterName="You might be interested in these as well:" formNamePrefix="cssl" targetRequestName="crosssell"/>
   <#-- up sell -->
-  <@associated assocProducts=upSellProducts beforeName="Try these instead of " showName="Y" afterName=":" formNamePrefix="upsl" targetRequestName="upsell"/>
+  <@associated assocProducts=upSellProducts beforeName="Try these instead of " showName="Y" afterName=":"
+      formNamePrefix="upsl" targetRequestName="upsell"/>
   <#-- obsolescence -->
-  <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" afterName=" makes these products obsolete:" formNamePrefix="obce" targetRequestName=""/>
-</table>
+  <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y"
+      afterName=" makes these products obsolete:" formNamePrefix="obce" targetRequestName=""/>
+  </table>
 
 <#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) -->
 <#if commonFeatureResultIds?has_content>
@@ -720,7 +810,7 @@
 
   <#list commonFeatureResultIds as commonFeatureResultId>
     <div>
-      ${setRequestAttribute("optProductId", commonFeatureResultId)}
+    ${setRequestAttribute("optProductId", commonFeatureResultId)}
       ${setRequestAttribute("listIndex", commonFeatureResultId_index)}
       ${setRequestAttribute("formNamePrefix", "cfeatcssl")}
       <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} -->
@@ -727,7 +817,7 @@
       ${screens.render(productsummaryScreen)}
     </div>
     <#if commonFeatureResultId_has_next>
-      <hr />
+      <hr/>
     </#if>
   </#list>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/DetailImage.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/DetailImage.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/DetailImage.ftl	(working copy)
@@ -18,15 +18,15 @@
 -->
 <html>
   <body>
-      <#if requestParameters.detail?has_content>
-        <#--assign detailImage = Static["org.apache.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)-->
-        <img src="${requestParameters.detail}" alt="" />
-      <#else>
-        <script language="JavaScript" type="text/javascript">
+    <#if requestParameters.detail?has_content>
+      <#--assign detailImage = Static["org.apache.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)-->
+      <img src="${requestParameters.detail}" alt=""/>
+    <#else>
+    <script language="JavaScript" type="text/javascript">
         <!-- //
             window.close();
         // -->
-        </script>
-      </#if>
+    </script>
+    </#if>
   </body>
 </html>
Index: specialpurpose/ecommerce/template/catalog/LastViewedProducts.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/LastViewedProducts.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/LastViewedProducts.ftl	(working copy)
@@ -20,7 +20,7 @@
   <tr>
     <td colspan="2">
       <h1>
-       ${uiLabelMap.ProductProductsLastViewed}
+        ${uiLabelMap.ProductProductsLastViewed}
       </h1>
     </td>
   </tr>
@@ -27,7 +27,6 @@
 </table>
 
 <#if sessionAttributes.lastViewedProducts?? && sessionAttributes.lastViewedProducts?has_content>
-
   <table>
     <#list sessionAttributes.lastViewedProducts as productId>
       <tr>
@@ -39,13 +38,12 @@
       </tr>
     </#list>
   </table>
-
 <#else>
-<table>
-  <tr>
-    <td>
-      <div class='tabletext'>${uiLabelMap.ProductNotViewedAnyProducts}.</div>
-    </td>
-  </tr>
-</table>
+  <table>
+    <tr>
+      <td>
+        <div class='tabletext'>${uiLabelMap.ProductNotViewedAnyProducts}.</div>
+      </td>
+    </tr>
+  </table>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/LayeredCategoryDetail.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/LayeredCategoryDetail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/LayeredCategoryDetail.ftl	(working copy)
@@ -18,90 +18,99 @@
 -->
 
 <#macro paginationControls>
-    <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
-      <#if (viewIndexMax?int > 0)>
-        <div class="product-prevnext">
-            <#-- Start Page Select Drop-Down -->
-            <select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">
-                <option value="#">${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}</option>
-                <#list 0..viewIndexMax as curViewNum>
-                     <option value="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${curViewNum?int}/~clearSearch=N</@ofbizUrl>">${uiLabelMap.CommonGotoPage} ${curViewNum + 1}</option>
-                </#list>
-            </select>
-            <#-- End Page Select Drop-Down -->
-            <#if (0 < viewIndex?int)>
-                <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int - 1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
-            </#if>
-            <#if ((listSize?int - viewSize?int) > 0)>
-                <span>${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
-            </#if>
-            <#if highIndex?int < listSize?int>
-             | <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int + 1}/~clearSearch=N</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
-            </#if>
-        </div>
-    </#if>
+  <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
+  <#if (viewIndexMax?int > 0)>
+    <div class="product-prevnext">
+      <#-- Start Page Select Drop-Down -->
+      <select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">
+        <option value="#">
+          ${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}
+        </option>
+        <#list 0..viewIndexMax as curViewNum>
+          <option
+              value="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${curViewNum?int}/~clearSearch=N</@ofbizUrl>">
+            ${uiLabelMap.CommonGotoPage} ${curViewNum + 1}
+          </option>
+        </#list>
+      </select>
+      <#-- End Page Select Drop-Down -->
+      <#if (0 < viewIndex?int)>
+        <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int - 1}/~clearSearch=N</@ofbizUrl>"
+            class="buttontext">${uiLabelMap.CommonPrevious}</a> |
+      </#if>
+      <#if ((listSize?int - viewSize?int) > 0)>
+        <span>${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
+      </#if>
+      <#if highIndex?int < listSize?int>
+        | <a href="<@ofbizUrl>category/~category_id=${productCategoryId}/~searchCategoryId=${currentSearchCategory.productCategoryId}/~VIEW_SIZE=${viewSize}/~VIEW_INDEX=${viewIndex?int + 1}/~clearSearch=N</@ofbizUrl>"
+              class="buttontext">
+            ${uiLabelMap.CommonNext}
+          </a>
+      </#if>
+    </div>
+  </#if>
 </#macro>
 
 
 <#if productCategory??>
-    <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
-    <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
-    <#if categoryName?has_content>
-        <h1>${categoryName}</h1>
-    </#if>
-    <#if categoryDescription?has_content>
-        <h1>${categoryDescription}</h1>
-    </#if>
-    <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
-    <#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
-    <#if categoryImageUrl?string?has_content || longDescription?has_content>
-      <div>
-        <#if categoryImageUrl?string?has_content>
-          <#assign height=100/>
-          <img src='<@ofbizContentUrl>${categoryImageUrl}</@ofbizContentUrl>' vspace='5' hspace='5' border='1' height='${height}' align='left' alt="" />
-        </#if>
-        <#if longDescription?has_content>
-          ${longDescription}
-        </#if>
-      </div>
+  <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
+  <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
+  <#if categoryName?has_content>
+    <h1>${categoryName}</h1>
   </#if>
+  <#if categoryDescription?has_content>
+    <h1>${categoryDescription}</h1>
+  </#if>
+  <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
+  <#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
+  <#if categoryImageUrl?string?has_content || longDescription?has_content>
+    <div>
+      <#if categoryImageUrl?string?has_content>
+        <#assign height=100/>
+        <img src='<@ofbizContentUrl>${categoryImageUrl}</@ofbizContentUrl>' vspace='5' hspace='5'
+            border='1' height='${height}' align='left' alt="" />
+      </#if>
+      <#if longDescription?has_content>
+        ${longDescription}
+      </#if>
+    </div>
+  </#if>
 </#if>
 
 <#if productIds?has_content>
-    <@paginationControls/>
-      <#assign numCol = numCol?default(1)>
-      <#assign numCol = numCol?number>
-      <#assign tabCol = 1>
-      <div
-      <#if categoryImageUrl?string?has_content>
-        style="position: relative; margin-top: ${height}px;"
-      </#if>
-      class="productsummary-container<#if (numCol?int > 1)> matrix</#if>">
+  <@paginationControls/>
+    <#assign numCol = numCol?default(1)>
+    <#assign numCol = numCol?number>
+    <#assign tabCol = 1>
+    <div
+        <#if categoryImageUrl?string?has_content>
+        style="position: relative; margin-top: ${height}px;"</#if>
+        class="productsummary-container<#if (numCol?int > 1)> matrix</#if>">
       <#if (numCol?int > 1)>
         <table>
       </#if>
-        <#list productIds as productId>
-          <#if (numCol?int == 1)>
-            ${setRequestAttribute("optProductId", productId)}
-            ${setRequestAttribute("listIndex", productId_index)}
-            ${screens.render(productsummaryScreen)}
-          <#else>
-              <#if (tabCol?int = 1)><tr></#if>
-                  <td>
-                      ${setRequestAttribute("optProductId", productId)}
-                      ${setRequestAttribute("listIndex", productId_index)}
-                      ${screens.render(productsummaryScreen)}
-                  </td>
-              <#if (tabCol?int = numCol)></tr></#if>
-              <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1></#if>
-           </#if>
-        </#list>
+      <#list productIds as productId>
+        <#if (numCol?int == 1)>
+          ${setRequestAttribute("optProductId", productId)}
+          ${setRequestAttribute("listIndex", productId_index)}
+          ${screens.render(productsummaryScreen)}
+        <#else>
+          <#if (tabCol?int = 1)><tr></#if>
+            <td>
+              ${setRequestAttribute("optProductId", productId)}
+              ${setRequestAttribute("listIndex", productId_index)}
+              ${screens.render(productsummaryScreen)}
+            </td>
+          <#if (tabCol?int = numCol)></tr></#if>
+          <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1></#if>
+        </#if>
+      </#list>
       <#if (numCol?int > 1)>
         </table>
       </#if>
-      </div>
-    <@paginationControls/>
+    </div>
+  <@paginationControls/>
 <#else>
-    <hr />
-    <div>${uiLabelMap.ProductNoProductsInThisCategory}</div>
+  <hr />
+  <div>${uiLabelMap.ProductNoProductsInThisCategory}</div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/LayeredNavBar.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/LayeredNavBar.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/LayeredNavBar.ftl	(working copy)
@@ -29,7 +29,11 @@
         <#assign currentSearchCategoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")?string />
         <#list searchConstraintStrings as searchConstraintString>
           <#if searchConstraintString.indexOf(currentSearchCategoryName) != -1>
-            <div id="searchConstraints">&nbsp;<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if previousCategoryId??>&amp;searchCategoryId=${previousCategoryId}</#if></@ofbizUrl>" class="buttontext">X</a><#noescape>&nbsp;${searchConstraintString}</#noescape></div>
+            <div id="searchConstraints">&nbsp;
+              <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if previousCategoryId??>&amp;searchCategoryId=${previousCategoryId}</#if></@ofbizUrl>"
+                  class="buttontext">X</a>
+                <#noescape>&nbsp;${searchConstraintString}</#noescape>
+            </div>
           </#if>
         </#list>
       </#if>
@@ -36,7 +40,13 @@
     </#escape>
     <#list searchConstraintStrings as searchConstraintString>
       <#if searchConstraintString.indexOf("Category: ") = -1 && searchConstraintString != "Exclude Variants">
-        <div id="searchConstraints">&nbsp;<a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>" class="buttontext">X</a>&nbsp;${searchConstraintString}</div>
+        <div id="searchConstraints">&nbsp;
+          <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?removeConstraint=${searchConstraintString_index}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"
+              class="buttontext">
+            X
+          </a>&nbsp;
+          ${searchConstraintString}
+        </div>
       </#if>
     </#list>
     <#if showSubCats>
@@ -46,7 +56,11 @@
           <#list subCategoryList as category>
             <#assign subCategoryContentWrapper = category.categoryContentWrapper />
             <#assign categoryName = subCategoryContentWrapper.get("CATEGORY_NAME", "html")!?string />
-            <li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?SEARCH_CATEGORY_ID${index}=${category.productCategoryId}&amp;searchCategoryId=${category.productCategoryId}&amp;clearSearch=N</@ofbizUrl>">${categoryName!} (${category.count})</a></li>
+            <li>
+              <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?SEARCH_CATEGORY_ID${index}=${category.productCategoryId}&amp;searchCategoryId=${category.productCategoryId}&amp;clearSearch=N</@ofbizUrl>">
+                ${categoryName!} (${category.count})
+              </a>
+            </li>
           </#list>
         </ul>
       </div>
@@ -56,7 +70,11 @@
         <strong>${colorFeatureType.description}</strong>
         <ul>
           <#list colors as color>
-            <li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">${color.description} (${color.featureCount})</a></li>
+            <li>
+              <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">
+                ${color.description} (${color.featureCount})
+              </a>
+            </li>
           </#list>
         </ul>
       </div>
@@ -66,7 +84,11 @@
         <strong>${uiLabelMap.EcommercePriceRange}</strong>
         <ul>
           <#list priceRangeList as priceRange>
-            <li><a href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}&amp;LIST_PRICE_HIGH=${priceRange.high}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"><@ofbizCurrency amount=priceRange.low /> - <@ofbizCurrency amount=priceRange.high /> (${priceRange.count})</a><li>
+            <li>
+              <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}&amp;LIST_PRICE_HIGH=${priceRange.high}&amp;clearSearch=N<#if currentSearchCategory??>&amp;searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>">
+                <@ofbizCurrency amount=priceRange.low /> - <@ofbizCurrency amount=priceRange.high /> (${priceRange.count})
+              </a>
+            <li>
           </#list>
         </ul>
       </div>
Index: specialpurpose/ecommerce/template/catalog/MiniAssocProds.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniAssocProds.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniAssocProds.ftl	(working copy)
@@ -17,22 +17,23 @@
 under the License.
 -->
 
-<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"].getRandomCartProductAssoc(request, true)!>
+<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"]
+    .getRandomCartProductAssoc(request, true)!>
 <#if associatedProducts?has_content>
-<div id="miniassocproducts" class="screenlet">
+  <div id="miniassocproducts" class="screenlet">
     <h3>${uiLabelMap.EcommerceYouMightLike}...</h3>
     <div class="screenlet-body">
-        <#-- random complementary products -->
-        <ul class="browsecategorylist">
+    <#-- random complementary products -->
+      <ul class="browsecategorylist">
         <#list associatedProducts as miniProduct>
-            <li class="browsecategorytext">
-                ${setRequestAttribute("miniProdQuantity", 1)}
-                ${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
-                ${setRequestAttribute("optProductId", miniProduct.productId)}
-                ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
-            </li>
+          <li class="browsecategorytext">
+            ${setRequestAttribute("miniProdQuantity", 1)}
+            ${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
+            ${setRequestAttribute("optProductId", miniProduct.productId)}
+            ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
+          </li>
         </#list>
-        </ul>
+      </ul>
     </div>
-</div>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/MiniLastProductSearches.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniLastProductSearches.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniLastProductSearches.ftl	(working copy)
@@ -18,34 +18,45 @@
 -->
 
 <#assign maxToShow = 4/>
-<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)!/>
+<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"]
+    .getSearchOptionsHistoryList(session)!/>
 <#if searchOptionsHistoryList?has_content>
-    <#if (searchOptionsHistoryList?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(searchOptionsHistoryList?size-1)/></#if>
-    <div id="minilastproductsearches" class="screenlet">
-      <div class="boxlink">
-        <a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>" class="lightbuttontextsmall">[${uiLabelMap.CommonClear}]</a>
-        <#if (searchOptionsHistoryList?size > maxToShow)>
-          <a href="<@ofbizUrl>advancedsearch</@ofbizUrl>" class="lightbuttontextsmall">[${uiLabelMap.CommonMore}]</a>
-        </#if>
-      </div>
-      <h3>${uiLabelMap.OrderLastSearches}...</h3>
-      <ul>
-        <#list searchOptionsHistoryList[0..limit] as searchOptions>
-          <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
-          <li>
+  <#if (searchOptionsHistoryList?size > maxToShow)>
+    <#assign limit=maxToShow/>
+  <#else>
+    <#assign limit=(searchOptionsHistoryList?size-1)/>
+  </#if>
+  <div id="minilastproductsearches" class="screenlet">
+    <div class="boxlink">
+      <a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>" class="lightbuttontextsmall">
+        [${uiLabelMap.CommonClear}]
+      </a>
+      <#if (searchOptionsHistoryList?size > maxToShow)>
+        <a href="<@ofbizUrl>advancedsearch</@ofbizUrl>" class="lightbuttontextsmall">
+          [${uiLabelMap.CommonMore}]
+        </a>
+      </#if>
+    </div>
+    <h3>${uiLabelMap.OrderLastSearches}...</h3>
+    <ul>
+      <#list searchOptionsHistoryList[0..limit] as searchOptions>
+        <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
+        <li>
           ${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1}
-            <ul>
-              <li>
-                <a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>" class="button">${uiLabelMap.CommonSearch}</a>
-                <a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>" class="button">${uiLabelMap.CommonRefine}</a>
-              </li>
-              <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
-              <#list constraintStrings as constraintString>
-                <li>${constraintString}</li>
-                </#list>
-            </ul>
-          </li>
-        </#list>
-      </ul>
-    </div>
+          <ul>
+            <li>
+              <a href="<@ofbizUrl>setCurrentSearchFromHistoryAndSearch?searchHistoryIndex=${searchOptions_index}&amp;clearSearch=N</@ofbizUrl>"
+                  class="button">${uiLabelMap.CommonSearch}</a>
+              <a href="<@ofbizUrl>setCurrentSearchFromHistory?searchHistoryIndex=${searchOptions_index}</@ofbizUrl>"
+                  class="button">${uiLabelMap.CommonRefine}</a>
+            </li>
+            <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)>
+            <#list constraintStrings as constraintString>
+              <li>${constraintString}</li>
+            </#list>
+          </ul>
+        </li>
+      </#list>
+    </ul>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/MiniLastViewedCategories.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniLastViewedCategories.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniLastViewedCategories.ftl	(working copy)
@@ -20,12 +20,18 @@
 <#assign maxToShow = 8/>
 <#assign lastViewedCategories = sessionAttributes.lastViewedCategories!/>
 <#if lastViewedCategories?has_content>
-  <#if (lastViewedCategories?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedCategories?size-1)/></#if>
+  <#if (lastViewedCategories?size > maxToShow)>
+    <#assign limit=maxToShow/>
+  <#else>
+    <#assign limit=(lastViewedCategories?size-1)/>
+  </#if>
   <div id="minilastviewedcategories" class="screenlet">
     <div class="screenlet-title-bar">
       <ul>
         <li class="h3">${uiLabelMap.EcommerceLastCategories}</li>
-        <li><a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a></li>
+        <li>
+          <a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a>
+        </li>
       </ul>
       <br class="clear"/>
     </div>
@@ -32,16 +38,28 @@
     <div class="screenlet-body">
       <ul class="browsecategorylist">
         <#list lastViewedCategories[0..limit] as categoryId>
-          <#assign category = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
+          <#assign category = delegator.findOne("ProductCategory",
+              Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
           <#if category?has_content>
             <li class="browsecategorytext">
-              <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
-                <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}</a>
-              <#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
-                <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}</a>
-               <#else>
-                 <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>" class="browsecategorybutton">${category.description!}</a>
-                </#if>
+              <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+                  catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
+                <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
+                    class="browsecategorybutton">
+                  ${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}
+                </a>
+              <#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+                  catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
+                <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
+                    class="browsecategorybutton">
+                  ${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}
+                </a>
+              <#else>
+                <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId/>"
+                    class="browsecategorybutton">
+                  ${category.description!}
+                </a>
+              </#if>
             </li>
           </#if>
         </#list>
Index: specialpurpose/ecommerce/template/catalog/MiniLastViewedProducts.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniLastViewedProducts.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniLastViewedProducts.ftl	(working copy)
@@ -20,14 +20,26 @@
 <#assign maxToShow = 4/>
 <#assign lastViewedProducts = sessionAttributes.lastViewedProducts!/>
 <#if lastViewedProducts?has_content>
-  <#if (lastViewedProducts?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedProducts?size-1)/></#if>
+  <#if (lastViewedProducts?size > maxToShow)>
+    <#assign limit=maxToShow/>
+  <#else>
+    <#assign limit=(lastViewedProducts?size-1)/>
+  </#if>
   <div id="minilastviewedproducts" class="screenlet">  
     <div class="screenlet-title-bar">
       <ul>
         <li class="h3">${uiLabelMap.EcommerceLastProducts}</li>
-        <li><a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">[${uiLabelMap.CommonClear}]</a></li>
+        <li>
+          <a href="<@ofbizUrl>clearLastViewed</@ofbizUrl>">
+            [${uiLabelMap.CommonClear}]
+          </a>
+        </li>
         <#if (lastViewedProducts?size > maxToShow)>
-          <li><a href="<@ofbizUrl>lastviewedproducts</@ofbizUrl>">[${uiLabelMap.CommonMore}]</a></li>
+          <li>
+            <a href="<@ofbizUrl>lastviewedproducts</@ofbizUrl>">
+              [${uiLabelMap.CommonMore}]
+            </a>
+          </li>
         </#if>
       </ul>
       <br class="clear"/>
Index: specialpurpose/ecommerce/template/catalog/MiniProductSummary.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniProductSummary.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniProductSummary.ftl	(working copy)
@@ -17,45 +17,81 @@
 under the License.
 -->
 <#if miniProduct??>
-    <a href="<@ofbizCatalogAltUrl productId=miniProduct.productId/>" class="linktext">${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}</a>
-    <ul>
-        <li>${miniProduct.productId}
-          <#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
-            <#if "Y" = miniProduct.isVirtual!> ${uiLabelMap.CommonFrom} </#if>
-            <#if totalPrice??>
-              <li>${uiLabelMap.ProductAggregatedPrice}: <span class='basePrice'><@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/></span></li>
-            <#else>
-              <span class="<#if priceResult.isSale>salePrice<#else>normalPrice</#if>">
-              <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/></span>
-            </#if>
-          </#if>
-        </li>
+  <a href="<@ofbizCatalogAltUrl productId=miniProduct.productId/>" class="linktext">
+    ${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}
+  </a>
+  <ul>
+    <li>
+      ${miniProduct.productId}
+      <#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
+        <#if "Y" = miniProduct.isVirtual!>
+          ${uiLabelMap.CommonFrom}
+        </#if>
+        <#if totalPrice??>
+          <li>
+            ${uiLabelMap.ProductAggregatedPrice}:
+            <span class='basePrice'>
+              <@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/>
+            </span>
+          </li>
+        <#else>
+          <span class="<#if priceResult.isSale>salePrice<#else>normalPrice</#if>">
+          <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/></span>
+        </#if>
+      </#if>
+    </li>
     <#if (miniProduct.introductionDate??) && (nowTimeLong < miniProduct.introductionDate.getTime())>
-        <#-- check to see if introductionDate hasn't passed yet -->
-        <li>${uiLabelMap.ProductNotYetAvailable}</li>
+      <#-- check to see if introductionDate hasn't passed yet -->
+      <li>${uiLabelMap.ProductNotYetAvailable}</li>
     <#elseif (miniProduct.salesDiscontinuationDate??) && (nowTimeLong > miniProduct.salesDiscontinuationDate.getTime())>
-        <#-- check to see if salesDiscontinuationDate has passed -->
-        <li>${uiLabelMap.ProductNoLongerAvailable}</li>
+      <#-- check to see if salesDiscontinuationDate has passed -->
+      <li>${uiLabelMap.ProductNoLongerAvailable}</li>
     <#elseif miniProduct.isVirtual?default("N") == "Y">
-        <li><a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.OrderChooseVariations}...</span></a></li>
+      <li>
+        <a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>"
+            class="buttons">
+          <span style="white-space: nowrap;">${uiLabelMap.OrderChooseVariations}...</span>
+        </a>
+      </li>
     <#elseif miniProduct.requireAmount?default("N") == "Y">
-        <li><a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.OrderChooseAmount}...</span></a></li>
+      <li>
+        <a href="<@ofbizCatalogAltUrl productCategoryId=requestParameters.category_id?? productId=miniProduct.productId/>"
+            class="buttons">
+          <span style="white-space: nowrap;">${uiLabelMap.OrderChooseAmount}...</span>
+        </a>
+      </li>
     <#else>
       <li>
-        <form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="${miniProdFormName}" style="margin: 0;">
+        <form method="post"
+            action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_?has_content>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
+            name="${miniProdFormName}" style="margin: 0;">
           <fieldset>
             <input type="hidden" name="add_product_id" value="${miniProduct.productId}"/>
             <input type="hidden" name="quantity" value="${miniProdQuantity?default("1")}"/>
-            <#if requestParameters.orderId?has_content><input type="hidden" name="orderId" value="${requestParameters.orderId}"/></#if>
-            <#if requestParameters.product_id?has_content><input type="hidden" name="product_id" value="${requestParameters.product_id}"/></#if>
-            <#if requestParameters.category_id?has_content><input type="hidden" name="category_id" value="${requestParameters.category_id}"/></#if>
-            <#if requestParameters.VIEW_INDEX?has_content><input type="hidden" name="VIEW_INDEX" value="${requestParameters.VIEW_INDEX}"/></#if>
-            <#if requestParameters.VIEW_SIZE?has_content><input type="hidden" name="VIEW_SIZE" value="${requestParameters.VIEW_SIZE}"/></#if>
+            <#if requestParameters.orderId?has_content>
+              <input type="hidden" name="orderId" value="${requestParameters.orderId}"/>
+            </#if>
+            <#if requestParameters.product_id?has_content>
+              <input type="hidden" name="product_id" value="${requestParameters.product_id}"/>
+            </#if>
+            <#if requestParameters.category_id?has_content>
+              <input type="hidden" name="category_id" value="${requestParameters.category_id}"/>
+            </#if>
+            <#if requestParameters.VIEW_INDEX?has_content>
+              <input type="hidden" name="VIEW_INDEX" value="${requestParameters.VIEW_INDEX}"/>
+            </#if>
+            <#if requestParameters.VIEW_SIZE?has_content>
+              <input type="hidden" name="VIEW_SIZE" value="${requestParameters.VIEW_SIZE}"/>
+            </#if>
             <input type="hidden" name="clearSearch" value="N"/>
-            <a href="javascript:document.${miniProdFormName}.submit()" class="buttons"><span style="white-space: nowrap;">${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart}</span></a>
+            <a href="javascript:document.${miniProdFormName}.submit()" class="buttons">
+              <span style="white-space: nowrap;">
+                ${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart}
+              </span>
+            </a>
           </fieldset>
         </form>
       </li>
     </#if>
-    </ul>
+  </ul>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/MiniReOrderProds.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/MiniReOrderProds.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/MiniReOrderProds.ftl	(working copy)
@@ -17,24 +17,23 @@
 under the License.
 -->
 <#if reorderProducts?has_content>
-<div id ="minireorderprods" class="screenlet">
+  <div id="minireorderprods" class="screenlet">
     <div class="screenlet-title-bar">
-        <ul>
-            <li class="h3">${uiLabelMap.ProductQuickReorder}...</li>
-        </ul>
+      <ul>
+        <li class="h3">${uiLabelMap.ProductQuickReorder}...</li>
+      </ul>
     </div>
     <div class="screenlet-body">
-        <#list reorderProducts as miniProduct>
-          <div>
-              ${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
-              ${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
-              ${setRequestAttribute("optProductId", miniProduct.productId)}
-              ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
-          </div>
-          <#if miniProduct_has_next>
-              
-          </#if>
-        </#list>
+      <#list reorderProducts as miniProduct>
+        <div>
+          ${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
+          ${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
+          ${setRequestAttribute("optProductId", miniProduct.productId)}
+          ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
+        </div>
+        <#if miniProduct_has_next>
+        </#if>
+      </#list>
     </div>
-</div>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/PopularTags.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/PopularTags.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/PopularTags.ftl	(working copy)
@@ -27,7 +27,10 @@
     </div>
     <div class="screenlet-body">
       <#list tagCloudList as tagCloud>
-          <a style="font-size: ${tagCloud.fontSize}pt;" href="<@ofbizUrl>tagsearch?SEARCH_STRING=${tagCloud.tag}&amp;keywordTypeId=KWT_TAG&amp;statusId=KW_APPROVED</@ofbizUrl>">${tagCloud.tag}</a>
+        <a style="font-size: ${tagCloud.fontSize}pt;"
+            href="<@ofbizUrl>tagsearch?SEARCH_STRING=${tagCloud.tag}&amp;keywordTypeId=KWT_TAG&amp;statusId=KW_APPROVED</@ofbizUrl>">
+          ${tagCloud.tag}
+        </a>
       </#list>
     </div>
   </div>
Index: specialpurpose/ecommerce/template/catalog/ProductCategories.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ProductCategories.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ProductCategories.ftl	(working copy)
@@ -16,19 +16,21 @@
   specific language governing permissions and limitations
   under the License.
   -->
-<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
-<script type="text/javascript" src="<@ofbizContentUrl>/images/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
-  
+<script language="javascript" type="text/javascript"
+        src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script>
+<script type="text/javascript"
+        src="<@ofbizContentUrl>/images/jquery/ui/js/jquery.cookie-1.4.0.js</@ofbizContentUrl>"></script>
+
 <script type="text/javascript">
-<#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
-function unescapeHtmlText(text) {
+  <#-- some labels are not unescaped in the JSON object so we have to do this manuely -->
+  function unescapeHtmlText(text) {
     return jQuery('<div />').html(text).text()
-}
+  }
 
-jQuery(window).load(createTree());
+  jQuery(window).load(createTree());
 
-<#-- creating the JSON Data -->
-var rawdata = [
+  <#-- creating the JSON Data -->
+  var rawdata = [
   <#if (requestAttributes.topLevelList)??>
     <#assign topLevelList = requestAttributes.topLevelList>
   </#if>
@@ -35,175 +37,188 @@
   <#if (topLevelList?has_content)>
     <@fillTree rootCat=completedTree/>
   </#if>
-  
   <#macro fillTree rootCat>
-  <#if (rootCat?has_content)>
-    <#list rootCat?sort_by("productCategoryId") as root>
-            {
-            "data": {"title" : unescapeHtmlText("<#if root.categoryName??>${root.categoryName?js_string}<#elseif root.categoryDescription??>${root.categoryDescription?js_string}<#else>${root.productCategoryId?js_string}</#if>"), "attr": { "href":"javascript: void(0);", "onClick":"callDocument('${root.productCategoryId}', '${root.parentCategoryId}')" , "class" : "${root.cssClass!}"}},
-            "attr": {"id" : "${root.productCategoryId}"}
-            <#if root.child?has_content>
-                ,"children": [
-                    <@fillTree rootCat=root.child/>
-                    ]
-            </#if>
-            <#if root_has_next>
-                },
-            <#else>
-                }
-            </#if>
-    </#list>
-  </#if>
-</#macro>
-     ];
+    <#if (rootCat?has_content)>
+      <#list rootCat?sort_by("productCategoryId") as root>
+      {
+        "data": {
+          "title": unescapeHtmlText(
+              "<#if root.categoryName??>${root.categoryName?js_string}<#elseif root.categoryDescription??>${root.categoryDescription?js_string}<#else>${root.productCategoryId?js_string}</#if>"),
+          "attr": {
+            "href": "javascript: void(0);",
+            "onClick": "callDocument('${root.productCategoryId}', '${root.parentCategoryId}')",
+            "class": "${root.cssClass!}"
+          }
+        },
+        "attr": {"id": "${root.productCategoryId}"}
+        <#if root.child?has_content>
+          , "children": [
+          <@fillTree rootCat=root.child/>]
+        </#if>
+        <#if root_has_next>
+        },
+        <#else>
+        }
+        </#if>
+      </#list>
+    </#if>
+  </#macro>
+  ]
+  ;
 
- <#-------------------------------------------------------------------------------------define Requests-->
+  <#-------------------------------------------------------------------------------------define Requests-->
   var editDocumentTreeUrl = '<@ofbizUrl>/views/EditDocumentTree</@ofbizUrl>';
-  var listDocument =  '<@ofbizUrl>/views/ListDocument</@ofbizUrl>';
+  var listDocument = '<@ofbizUrl>/views/ListDocument</@ofbizUrl>';
   var editDocumentUrl = '<@ofbizUrl>/views/EditDocument</@ofbizUrl>';
   var deleteDocumentUrl = '<@ofbizUrl>removeDocumentFromTree</@ofbizUrl>';
 
- <#-------------------------------------------------------------------------------------create Tree-->
+  <#-------------------------------------------------------------------------------------create Tree-->
   function createTree() {
     jQuery(function () {
-        jQuery("#tree").jstree({
-        "themes" : {
-            "theme" : "classic",
-            "icons" : false
+      jQuery("#tree").jstree({
+        "themes": {
+          "theme": "classic",
+          "icons": false
         },
-        "cookies" : {
-            "cookie_options" : {path: '/'} 
+        "cookies": {
+          "cookie_options": {path: '/'}
         },
-       "plugins" : [ "themes", "json_data", "cookies"],
-            "json_data" : {
-                "data" : rawdata
-            }
-        });
+        "plugins": ["themes", "json_data", "cookies"],
+        "json_data": {
+          "data": rawdata
+        }
+      });
     });
   }
 
-<#-------------------------------------------------------------------------------------callDocument function-->
-    function callDocument(id, parentCategoryStr) {
-        var checkUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
-        if(checkUrl.search("http"))
-            var ajaxUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
-        else
-            var ajaxUrl = '<@ofbizUrl>productCategoryListSecure</@ofbizUrl>';
+  <#-------------------------------------------------------------------------------------callDocument function-->
+  function callDocument(id, parentCategoryStr) {
+    var checkUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
+    if (checkUrl.search("http"))
+      var ajaxUrl = '<@ofbizUrl>productCategoryList</@ofbizUrl>';
+    else
+      var ajaxUrl = '<@ofbizUrl>productCategoryListSecure</@ofbizUrl>';
 
-        //jQuerry Ajax Request
-        jQuery.ajax({
-            url: ajaxUrl,
-            type: 'POST',
-            data: {"category_id" : id, "parentCategoryStr" : parentCategoryStr},
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#div3').html(msg);
-            }
-        });
-     }
-<#-------------------------------------------------------------------------------------callCreateDocumentTree function-->
-      function callCreateDocumentTree(contentId) {
-        jQuery.ajax({
-            url: editDocumentTreeUrl,
-            type: 'POST',
-            data: {contentId: contentId,
-                        contentAssocTypeId: 'TREE_CHILD'},
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#Document').html(msg);
-            }
-        });
-    }
-<#-------------------------------------------------------------------------------------callCreateSection function-->
-    function callCreateDocument(contentId) {
-        jQuery.ajax({
-            url: editDocumentUrl,
-            type: 'POST',
-            data: {contentId: contentId},
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#Document').html(msg);
-            }
-        });
-    }
-<#-------------------------------------------------------------------------------------callEditSection function-->
-    function callEditDocument(contentIdTo) {
-        jQuery.ajax({
-            url: editDocumentUrl,
-            type: 'POST',
-            data: {contentIdTo: contentIdTo},
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#Document').html(msg);
-            }
-        });
+    //jQuerry Ajax Request
+    jQuery.ajax({
+      url: ajaxUrl,
+      type: 'POST',
+      data: {"category_id": id, "parentCategoryStr": parentCategoryStr},
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#div3').html(msg);
+      }
+    });
+  }
+  <#-------------------------------------------------------------------------------------callCreateDocumentTree function-->
+  function callCreateDocumentTree(contentId) {
+    jQuery.ajax({
+      url: editDocumentTreeUrl,
+      type: 'POST',
+      data: {
+        contentId: contentId,
+        contentAssocTypeId: 'TREE_CHILD'
+      },
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#Document').html(msg);
+      }
+    });
+  }
+  <#-------------------------------------------------------------------------------------callCreateSection function-->
+  function callCreateDocument(contentId) {
+    jQuery.ajax({
+      url: editDocumentUrl,
+      type: 'POST',
+      data: {contentId: contentId},
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#Document').html(msg);
+      }
+    });
+  }
+  <#-------------------------------------------------------------------------------------callEditSection function-->
+  function callEditDocument(contentIdTo) {
+    jQuery.ajax({
+      url: editDocumentUrl,
+      type: 'POST',
+      data: {contentIdTo: contentIdTo},
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#Document').html(msg);
+      }
+    });
 
-    }
-<#-------------------------------------------------------------------------------------callDeleteItem function-->
-    function callDeleteDocument(contentId, contentIdTo, contentAssocTypeId, fromDate) {
-        jQuery.ajax({
-            url: deleteDocumentUrl,
-            type: 'POST',
-            data: {contentId : contentId, contentIdTo : contentIdTo, contentAssocTypeId : contentAssocTypeId, fromDate : fromDate},
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                location.reload();
-            }
-        });
-    }
- <#-------------------------------------------------------------------------------------callRename function-->
-    function callRenameDocumentTree(contentId) {
-        jQuery.ajax({
-            url: editDocumentTreeUrl,
-            type: 'POST',
-            data: {  contentId: contentId,
-                     contentAssocTypeId:'TREE_CHILD',
-                     rename: 'Y'
-                     },
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#Document').html(msg);
-            }
-        });
-    }
- <#------------------------------------------------------pagination function -->
-    function nextPrevDocumentList(url){
-        url= '<@ofbizUrl>'+url+'</@ofbizUrl>';
-         jQuery.ajax({
-            url: url,
-            type: 'POST',
-            error: function(msg) {
-                alert("An error occurred loading content! : " + msg);
-            },
-            success: function(msg) {
-                jQuery('#Document').html(msg);
-            }
-        });
-    }
+  }
+  <#-------------------------------------------------------------------------------------callDeleteItem function-->
+  function callDeleteDocument(contentId, contentIdTo, contentAssocTypeId, fromDate) {
+    jQuery.ajax({
+      url: deleteDocumentUrl,
+      type: 'POST',
+      data: {
+        contentId: contentId,
+        contentIdTo: contentIdTo,
+        contentAssocTypeId: contentAssocTypeId,
+        fromDate: fromDate
+      },
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        location.reload();
+      }
+    });
+  }
+  <#-------------------------------------------------------------------------------------callRename function-->
+  function callRenameDocumentTree(contentId) {
+    jQuery.ajax({
+      url: editDocumentTreeUrl,
+      type: 'POST',
+      data: {
+        contentId: contentId,
+        contentAssocTypeId: 'TREE_CHILD',
+        rename: 'Y'
+      },
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#Document').html(msg);
+      }
+    });
+  }
+  <#------------------------------------------------------pagination function -->
+  function nextPrevDocumentList(url) {
+    url = '<@ofbizUrl>'+ url+'</@ofbizUrl>';
+    jQuery.ajax({
+      url: url,
+      type: 'POST',
+      error: function (msg) {
+        alert("An error occurred loading content! : " + msg);
+      },
+      success: function (msg) {
+        jQuery('#Document').html(msg);
+      }
+    });
+  }
 
 </script>
 
 
-
-
 <div id="quickadd" class="screenlet">
-    <div class="screenlet-title-bar">
-        <ul>
-            <li class="h3">${uiLabelMap.ProductCategories}</li>
-        </ul>
-    </div>
-    <div class="screenlet-body" id="tree">
-    </div>
+  <div class="screenlet-title-bar">
+    <ul>
+      <li class="h3">${uiLabelMap.ProductCategories}</li>
+    </ul>
+  </div>
+  <div class="screenlet-body" id="tree">
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/catalog/ProductCategoryLink.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ProductCategoryLink.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ProductCategoryLink.ftl	(working copy)
@@ -19,29 +19,44 @@
 
 <#assign productCategoryLink = requestAttributes.productCategoryLink!/>
 <#if productCategoryLink?has_content>
-<#if productCategoryLink.detailSubScreen?has_content>
+  <#if productCategoryLink.detailSubScreen?has_content>
     ${screens.render(productCategoryLink.detailSubScreen)}
-<#else>
+  <#else>
     <#assign titleText = productCategoryLink.titleText!/>
     <#assign imageUrl = productCategoryLink.imageUrl!/>
     <#assign detailText = productCategoryLink.detailText!/>
 
     <#if productCategoryLink.linkTypeEnumId == "PCLT_SEARCH_PARAM">
-      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
+      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
+          request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
       <#assign linkUrl = productCategoryLink.linkInfo!/>
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_CAT_ID">
-      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "category/~category_id=" + productCategoryLink.linkInfo) + "/~pcategory=" + productCategoryId/>
-      <#assign linkProductCategory = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryLink.linkInfo), true)/>
-      <#assign linkCategoryContentWrapper = Static["org.apache.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(linkProductCategory, request)/>
-      <#assign titleText = productCategoryLink.titleText?default(linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
-      <#assign imageUrl = productCategoryLink.imageUrl?default(linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
-      <#assign detailText = productCategoryLink.detailText?default(linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
+      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
+          request, response, "category/~category_id=" + productCategoryLink.linkInfo) +
+          "/~pcategory=" + productCategoryId/>
+      <#assign linkProductCategory = delegator.findOne(
+          "ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap(
+          "productCategoryId", productCategoryLink.linkInfo), true)/>
+      <#assign linkCategoryContentWrapper =
+          Static["org.apache.ofbiz.product.category.CategoryContentWrapper"]
+          .makeCategoryContentWrapper(linkProductCategory, request)/>
+      <#assign titleText = productCategoryLink.titleText?default(
+          linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
+      <#assign imageUrl = productCategoryLink.imageUrl?default(
+          linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
+      <#assign detailText = productCategoryLink.detailText?default(
+          linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
     </#if>
 
     <div class="productcategorylink">
       <#if imageUrl?string?has_content>
-        <div class="smallimage"><a href="${linkUrl}"><img src="<@ofbizContentUrl>${imageUrl}</@ofbizContentUrl>" alt="${titleText?default("Link Image")}"/></a></div>
+        <div class="smallimage">
+          <a href="${linkUrl}">
+            <img src="<@ofbizContentUrl>${imageUrl}</@ofbizContentUrl>"
+                alt="${titleText?default("Link Image")}"/>
+          </a>
+        </div>
       </#if>
       <#if titleText?has_content>
         <a href="${linkUrl}" class="linktext">${titleText}</a>
@@ -50,5 +65,5 @@
         <div>${detailText}</div>
       </#if>
     </div>
+  </#if>
 </#if>
-</#if>
Index: specialpurpose/ecommerce/template/catalog/ProductDetail.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ProductDetail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ProductDetail.ftl	(working copy)
@@ -335,475 +335,644 @@
 </#macro>
 
 <div id="productdetail">
-    <#assign productAdditionalImage1 = productContentWrapper.get("ADDITIONAL_IMAGE_1", "url")! />
-    <#assign productAdditionalImage2 = productContentWrapper.get("ADDITIONAL_IMAGE_2", "url")! />
-    <#assign productAdditionalImage3 = productContentWrapper.get("ADDITIONAL_IMAGE_3", "url")! />
-    <#assign productAdditionalImage4 = productContentWrapper.get("ADDITIONAL_IMAGE_4", "url")! />
-    
-      <#-- Category next/previous -->
-      <#if category??>
-          <div id="paginationBox">
-            <#if previousProductId??>
-              <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId! productId=previousProductId!/>" class="buttontext">${uiLabelMap.CommonPrevious}</a>&nbsp;|&nbsp;
-            </#if>
-            <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId!/>" class="linktext">${(category.categoryName)?default(category.description)!}</a>
-            <#if nextProductId??>
-              &nbsp;|&nbsp;<a href="<@ofbizCatalogAltUrl productCategoryId=categoryId! productId=nextProductId!/>" class="buttontext">${uiLabelMap.CommonNext}</a>
-            </#if>
-          </div>
+  <#assign productAdditionalImage1 = productContentWrapper.get("ADDITIONAL_IMAGE_1", "url")! />
+  <#assign productAdditionalImage2 = productContentWrapper.get("ADDITIONAL_IMAGE_2", "url")! />
+  <#assign productAdditionalImage3 = productContentWrapper.get("ADDITIONAL_IMAGE_3", "url")! />
+  <#assign productAdditionalImage4 = productContentWrapper.get("ADDITIONAL_IMAGE_4", "url")! />
+
+  <#-- Category next/previous -->
+  <#if category??>
+    <div id="paginationBox">
+      <#if previousProductId??>
+        <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId! productId=previousProductId!/>"
+            class="buttontext">${uiLabelMap.CommonPrevious}</a>&nbsp;|&nbsp;
       </#if>
-    
-    <hr />
-    <div id="productImageBox">
+      <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId!/>"
+          class="linktext">${(category.categoryName)?default(category.description)!}</a>
+      <#if nextProductId??>&nbsp;|&nbsp;
+        <a href="<@ofbizCatalogAltUrl productCategoryId=categoryId! productId=nextProductId!/>"
+            class="buttontext">${uiLabelMap.CommonNext}</a>
+      </#if>
+    </div>
+  </#if>
+
+  <hr/>
+  <div id="productImageBox">
+    <#if productImageList?has_content>
+      <#-- Product image/name/price -->
+      <div id="detailImageBox">
+        <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")! />
+        <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
+        <#if firstLargeImage?has_content>
+          <#assign productLargeImageUrl = firstLargeImage />
+        </#if>
+        <#if productLargeImageUrl?string?has_content>
+          <a href="javascript:popupDetail();">
+            <img id="detailImage" src="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>"
+                name="mainImage" vspace="5" hspace="5" class="cssImgXLarge" alt=""/>
+          </a>
+          <input type="hidden" id="originalImage" name="originalImage"
+              value="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>"/>
+        </#if>
+        <#if !productLargeImageUrl?string?has_content>
+          <img id="detailImage" src="/images/defaultImage.jpg" name="mainImage" alt=""/>
+        </#if>
+      </div>
+      <#-- Show Image Approved -->
+      <div id="additionalImageBox">
         <#if productImageList?has_content>
-            <#-- Product image/name/price -->
-            <div id="detailImageBox">
-                <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")! />
-                <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
-                <#if firstLargeImage?has_content>
-                    <#assign productLargeImageUrl = firstLargeImage />
-                </#if>
-                <#if productLargeImageUrl?string?has_content>
-                    <a href="javascript:popupDetail();"><img id="detailImage" src="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>" name="mainImage" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    <input type="hidden" id="originalImage" name="originalImage" value="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>" />
-                </#if>
-                <#if !productLargeImageUrl?string?has_content>
-                    <img id="detailImage" src="/images/defaultImage.jpg" name="mainImage" alt="" />
-                </#if>
+          <#list productImageList as productImage>
+            <div class="additionalImage">
+              <a href="javascript:void(0);"
+                  swapDetail="<@ofbizContentUrl>${productImage.productImage}</@ofbizContentUrl>">
+                <img src="<@ofbizContentUrl>${productImage.productImageThumb}</@ofbizContentUrl>"
+                    vspace="5" hspace="5" alt=""/>
+              </a>
             </div>
-            <#-- Show Image Approved -->
-            <div id="additionalImageBox">
-                <#if productImageList?has_content>
-                    <#list productImageList as productImage>
-                        <div class="additionalImage">
-                            <a href="javascript:void(0);" swapDetail="<@ofbizContentUrl>${productImage.productImage}</@ofbizContentUrl>"><img src="<@ofbizContentUrl>${productImage.productImageThumb}</@ofbizContentUrl>" vspace="5" hspace="5" alt="" /></a>
-                        </div>
-                    </#list>
-                </#if>
-            </div>
-        <#else>
-            <#-- Product image/name/price -->
-            <div id="detailImageBox">
-                <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")! />
-                <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
-                <#if firstLargeImage?has_content>
-                    <#assign productLargeImageUrl = firstLargeImage />
-                </#if>
-                <#if productLargeImageUrl?string?has_content>
-                    <a href="javascript:popupDetail();"><img id="detailImage" src="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>" name="mainImage" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    <input type="hidden" id="originalImage" name="originalImage" value="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>" />
-                </#if>
-                <#if !productLargeImageUrl?string?has_content>
-                    <img id="detailImage" src="/images/defaultImage.jpg" name="mainImage" alt="" />
-                </#if>
-            </div>
-            <div id="additionalImageBox">
-                <#if productAdditionalImage1?string?has_content>
-                    <div class="additionalImage">
-                        <a href="javascript:void(0);" swapDetail="<@ofbizContentUrl>${productAdditionalImage1}</@ofbizContentUrl>"><img src="<@ofbizContentUrl>${productAdditionalImage1}</@ofbizContentUrl>" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    </div>
-                </#if>
-                <#if productAdditionalImage2?string?has_content>
-                    <div class="additionalImage">
-                        <a href="javascript:void(0);" swapDetail="<@ofbizContentUrl>${productAdditionalImage2}</@ofbizContentUrl>"><img src="<@ofbizContentUrl>${productAdditionalImage2}</@ofbizContentUrl>" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    </div>
-                </#if>
-                <#if productAdditionalImage3?string?has_content>
-                    <div class="additionalImage">
-                        <a href="javascript:void(0);" swapDetail="<@ofbizContentUrl>${productAdditionalImage3}</@ofbizContentUrl>"><img src="<@ofbizContentUrl>${productAdditionalImage3}</@ofbizContentUrl>" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    </div>
-                </#if>
-                <#if productAdditionalImage4?string?has_content>
-                    <div class="additionalImage">
-                        <a href="javascript:void(0);" swapDetail="<@ofbizContentUrl>${productAdditionalImage4}</@ofbizContentUrl>"><img src="<@ofbizContentUrl>${productAdditionalImage4}</@ofbizContentUrl>" vspace="5" hspace="5" class="cssImgXLarge" alt="" /></a>
-                    </div>
-                </#if>
-            </div>
+          </#list>
         </#if>
-        
-        <div id="productDetailBox">
-          <h2>${productContentWrapper.get("PRODUCT_NAME", "html")!}</h2>
-          <div>${productContentWrapper.get("DESCRIPTION", "html")!}</div>
-          <div>${product.productId!}</div>
-          <#-- example of showing a certain type of feature with the product -->
-          <#if sizeProductFeatureAndAppls?has_content>
-            <div>
-              <#if (sizeProductFeatureAndAppls?size == 1)>
-                ${uiLabelMap.OrderSizeAvailableSingle}:
-              <#else>
-                ${uiLabelMap.OrderSizeAvailableMultiple}:
-              </#if>
-              <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
-                ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>,</#if>
-              </#list>
-            </div>
+      </div>
+    <#else>
+      <#-- Product image/name/price -->
+      <div id="detailImageBox">
+        <#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")! />
+        <#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
+        <#if firstLargeImage?has_content>
+          <#assign productLargeImageUrl = firstLargeImage />
+        </#if>
+        <#if productLargeImageUrl?string?has_content>
+          <a href="javascript:popupDetail();">
+            <img id="detailImage" src="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>"
+                name="mainImage" vspace="5" hspace="5" class="cssImgXLarge" alt=""/>
+          </a>
+          <input type="hidden" id="originalImage" name="originalImage"
+              value="<@ofbizContentUrl>${contentPathPrefix!}${productLargeImageUrl!}</@ofbizContentUrl>"/>
+        </#if>
+        <#if !productLargeImageUrl?string?has_content>
+          <img id="detailImage" src="/images/defaultImage.jpg" name="mainImage" alt=""/>
+        </#if>
+      </div>
+      <div id="additionalImageBox">
+        <#if productAdditionalImage1?string?has_content>
+          <div class="additionalImage">
+            <a href="javascript:void(0);"
+                swapDetail="<@ofbizContentUrl>${productAdditionalImage1}</@ofbizContentUrl>">
+              <img src="<@ofbizContentUrl>${productAdditionalImage1}</@ofbizContentUrl>" vspace="5" hspace="5"
+                class="cssImgXLarge" alt=""/>
+            </a>
+          </div>
+        </#if>
+        <#if productAdditionalImage2?string?has_content>
+          <div class="additionalImage">
+            <a href="javascript:void(0);"
+                swapDetail="<@ofbizContentUrl>${productAdditionalImage2}</@ofbizContentUrl>">
+              <img src="<@ofbizContentUrl>${productAdditionalImage2}</@ofbizContentUrl>" vspace="5" hspace="5"
+                  class="cssImgXLarge" alt=""/>
+            </a>
+          </div>
+        </#if>
+        <#if productAdditionalImage3?string?has_content>
+          <div class="additionalImage">
+            <a href="javascript:void(0);"
+                swapDetail="<@ofbizContentUrl>${productAdditionalImage3}</@ofbizContentUrl>">
+              <img src="<@ofbizContentUrl>${productAdditionalImage3}</@ofbizContentUrl>" vspace="5" hspace="5"
+                  class="cssImgXLarge" alt=""/>
+            </a>
+          </div>
+        </#if>
+        <#if productAdditionalImage4?string?has_content>
+          <div class="additionalImage">
+            <a href="javascript:void(0);"
+                swapDetail="<@ofbizContentUrl>${productAdditionalImage4}</@ofbizContentUrl>">
+              <img src="<@ofbizContentUrl>${productAdditionalImage4}</@ofbizContentUrl>" vspace="5" hspace="5"
+                  class="cssImgXLarge" alt=""/>
+            </a>
+          </div>
+        </#if>
+      </div>
+    </#if>
+
+    <div id="productDetailBox">
+      <h2>${productContentWrapper.get("PRODUCT_NAME", "html")!}</h2>
+      <div>${productContentWrapper.get("DESCRIPTION", "html")!}</div>
+      <div>${product.productId!}</div>
+      <#-- example of showing a certain type of feature with the product -->
+      <#if sizeProductFeatureAndAppls?has_content>
+        <div>
+          <#if (sizeProductFeatureAndAppls?size == 1)>
+          ${uiLabelMap.OrderSizeAvailableSingle}:
+          <#else>
+          ${uiLabelMap.OrderSizeAvailableMultiple}:
           </#if>
-    
-          <#-- for prices:
-                  - if price < competitivePrice, show competitive or "Compare At" price
-                  - if price < listPrice, show list price
-                  - if price < defaultPrice and defaultPrice < listPrice, show default
-                  - if isSale show price with salePrice style and print "On Sale!"
-          -->
-          <#if price.competitivePrice?? && price.price?? && price.price &lt; price.competitivePrice>
-            <div>${uiLabelMap.ProductCompareAtPrice}: <span class="basePrice"><@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed /></span></div>
+          <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
+            ${sizeProductFeatureAndAppl.description?default(
+                sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}
+            <#if sizeProductFeatureAndAppl_has_next>,</#if>
+          </#list>
+        </div>
+      </#if>
+
+      <#-- for prices:
+              - if price < competitivePrice, show competitive or "Compare At" price
+              - if price < listPrice, show list price
+              - if price < defaultPrice and defaultPrice < listPrice, show default
+              - if isSale show price with salePrice style and print "On Sale!"
+      -->
+      <#if price.competitivePrice?? && price.price?? && price.price &lt; price.competitivePrice>
+        <div>${uiLabelMap.ProductCompareAtPrice}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed />
+          </span>
+        </div>
+      </#if>
+      <#if price.listPrice?? && price.price?? && price.price &lt; price.listPrice>
+        <div>${uiLabelMap.ProductListPrice}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed />
+          </span>
+        </div>
+      </#if>
+      <#if price.listPrice?? && price.defaultPrice?? && price.price?? &&
+          price.price &lt; price.defaultPrice && price.defaultPrice &lt; price.listPrice>
+        <div>
+          ${uiLabelMap.ProductRegularPrice}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed />
+          </span>
+        </div>
+      </#if>
+      <#if price.specialPromoPrice??>
+        <div>${uiLabelMap.ProductSpecialPromoPrice}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=price.specialPromoPrice isoCode=price.currencyUsed />
+          </span>
+        </div>
+      </#if>
+      <div>
+        <strong>
+          <#if price.isSale?? && price.isSale>
+            <span class="salePrice">${uiLabelMap.OrderOnSale}!</span>
+            <#assign priceStyle = "salePrice" />
+          <#else>
+            <#assign priceStyle = "regularPrice" />
           </#if>
-          <#if price.listPrice?? && price.price?? && price.price &lt; price.listPrice>
-            <div>${uiLabelMap.ProductListPrice}: <span class="basePrice"><@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed /></span></div>
+          ${uiLabelMap.OrderYourPrice}:
+          <#if "Y" = product.isVirtual!>
+            ${uiLabelMap.CommonFrom}
           </#if>
-          <#if price.listPrice?? && price.defaultPrice?? && price.price?? && price.price &lt; price.defaultPrice && price.defaultPrice &lt; price.listPrice>
-            <div>${uiLabelMap.ProductRegularPrice}: <span class="basePrice"><@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed /></span></div>
+          <span class="${priceStyle}">
+            <@ofbizCurrency amount=price.price isoCode=price.currencyUsed />
+          </span>
+          <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+            <#if product.reserv2ndPPPerc?? && product.reserv2ndPPPerc != 0><br/>
+              <span class="${priceStyle}">
+                ${uiLabelMap.ProductReserv2ndPPPerc}
+                <#if !product.reservNthPPPerc?? || product.reservNthPPPerc == 0>
+                  ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}
+                </#if>
+                <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed />
+              </span>
+            </#if>
+            <#if product.reservNthPPPerc?? &&product.reservNthPPPerc != 0><br/>
+              <span class="${priceStyle}">
+                ${uiLabelMap.ProductReservNthPPPerc}
+                <#if !product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0>
+                  ${uiLabelMap.ProductReservSecond}
+                <#else>
+                  ${uiLabelMap.ProductReservThird}
+                </#if>
+                ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}, ${uiLabelMap.ProductEach}:
+                <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed />
+              </span>
+            </#if>
+            <#if (!product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?? ||
+                product.reservNthPPPerc == 0)>
+              <br/>${uiLabelMap.ProductMaximum} ${product.reservMaxPersons!1} ${uiLabelMap.ProductPersons}.
+            </#if>
           </#if>
-          <#if price.specialPromoPrice??>
-            <div>${uiLabelMap.ProductSpecialPromoPrice}: <span class="basePrice"><@ofbizCurrency amount=price.specialPromoPrice isoCode=price.currencyUsed /></span></div>
-          </#if>
+        </strong>
+      </div>
+      <#if price.listPrice?? && price.price?? && price.price &lt; price.listPrice>
+        <#assign priceSaved = price.listPrice - price.price />
+        <#assign percentSaved = (priceSaved / price.listPrice) * 100 />
+        <div>
+          ${uiLabelMap.OrderSave}:
+          <span class="basePrice">
+            <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed />
+            (${percentSaved?int}%)
+          </span>
+        </div>
+      </#if>
+      <#-- show price details ("showPriceDetails" field can be set in the screen definition) -->
+      <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")>
+        <#if price.orderItemPriceInfos??>
+          <#list price.orderItemPriceInfos as orderItemPriceInfo>
+            <div>${orderItemPriceInfo.description!}</div>
+          </#list>
+        </#if>
+      </#if>
+
+      <#-- Included quantities/pieces -->
+      <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
+        <div>
+          ${uiLabelMap.OrderPieces}: ${product.piecesIncluded}
+        </div>
+      </#if>
+      <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content>
+        <#assign quantityUom = product.getRelatedOne("QuantityUom", true)! />
+        <div>
+          ${uiLabelMap.CommonQuantity} :
+          ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}
+        </div>
+      </#if>
+
+      <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content>
+        <#assign weightUom = product.getRelatedOne("WeightUom", true)! />
+        <div>
+          ${uiLabelMap.CommonWeight}:
+          ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}
+        </div>
+      </#if>
+      <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content>
+        <#assign heightUom = product.getRelatedOne("HeightUom", true)! />
+        <div>
+          ${uiLabelMap.CommonHeight}:
+          ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}
+        </div>
+      </#if>
+      <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content>
+        <#assign widthUom = product.getRelatedOne("WidthUom", true)! />
+        <div>
+          ${uiLabelMap.CommonWidth}:
+          ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}
+        </div>
+      </#if>
+      <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content>
+        <#assign depthUom = product.getRelatedOne("DepthUom", true)! />
+        <div>
+          ${uiLabelMap.CommonDepth}:
+          ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}
+        </div>
+      </#if>
+
+      <#if daysToShip??>
+        <div>
+          <strong>
+            ${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}!
+          </strong>
+        </div>
+      </#if>
+
+      <#-- show tell a friend details only in ecommerce application -->
+      <div>&nbsp;</div>
+      <div>
+        <a href="javascript:popUpSmall('<@ofbizUrl>tellafriend?productId=${product.productId}<#if categoryId??>&categoryId=${categoryId}/</#if></@ofbizUrl>','tellafriend');"
+            class="buttontext">${uiLabelMap.CommonTellAFriend}</a>
+      </div>
+
+      <#if disFeatureList?? && 0 &lt; disFeatureList.size()>
+        <p>&nbsp;</p>
+        <#list disFeatureList as currentFeature>
+          <#assign disFeatureType = currentFeature.getRelatedOne("ProductFeatureType", true) />
           <div>
-            <strong>
-              <#if price.isSale?? && price.isSale>
-                <span class="salePrice">${uiLabelMap.OrderOnSale}!</span>
-                <#assign priceStyle = "salePrice" />
-              <#else>
-                <#assign priceStyle = "regularPrice" />
-              </#if>
-                ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} </#if><span class="${priceStyle}"><@ofbizCurrency amount=price.price isoCode=price.currencyUsed /></span>
-                 <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
-                <#if product.reserv2ndPPPerc?? && product.reserv2ndPPPerc != 0><br /><span class="${priceStyle}">${uiLabelMap.ProductReserv2ndPPPerc}<#if !product.reservNthPPPerc?? || product.reservNthPPPerc == 0>${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}</#if> <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed /></span></#if>
-                <#if product.reservNthPPPerc?? &&product.reservNthPPPerc != 0><br /><span class="${priceStyle}">${uiLabelMap.ProductReservNthPPPerc} <#if !product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0>${uiLabelMap.ProductReservSecond} <#else> ${uiLabelMap.ProductReservThird} </#if> ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}, ${uiLabelMap.ProductEach}: <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed /></span></#if>
-                <#if (!product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?? || product.reservNthPPPerc == 0)><br />${uiLabelMap.ProductMaximum} ${product.reservMaxPersons!1} ${uiLabelMap.ProductPersons}.</#if>
-                 </#if>
-             </strong>
+            <#if disFeatureType.description??>
+              ${disFeatureType.get("description", locale)}
+            <#else>
+              ${currentFeature.productFeatureTypeId}
+            </#if>:&nbsp;
+            ${currentFeature.description}
           </div>
-          <#if price.listPrice?? && price.price?? && price.price &lt; price.listPrice>
-            <#assign priceSaved = price.listPrice - price.price />
-            <#assign percentSaved = (priceSaved / price.listPrice) * 100 />
-            <div>${uiLabelMap.OrderSave}: <span class="basePrice"><@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed /> (${percentSaved?int}%)</span></div>
-          </#if>
-          <#-- show price details ("showPriceDetails" field can be set in the screen definition) -->
-          <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")>
-              <#if price.orderItemPriceInfos??>
-                  <#list price.orderItemPriceInfos as orderItemPriceInfo>
-                      <div>${orderItemPriceInfo.description!}</div>
-                  </#list>
-              </#if>
-          </#if>
-    
-          <#-- Included quantities/pieces -->
-          <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
-            <div>
-              ${uiLabelMap.OrderPieces}: ${product.piecesIncluded}
+        </#list>
+        <div>&nbsp;</div>
+      </#if>
+    </div>
+
+    <div id="addItemForm">
+      <form method="post" action="<@ofbizUrl>additem</@ofbizUrl>" name="addform" style="margin: 0;">
+        <fieldset>
+        <#assign inStock = true />
+        <#assign commentEnable = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"]
+            .getPropertyValue("order", "order.item.comment.enable", delegator)>
+        <#if commentEnable.equals("Y")>
+          <#assign orderItemAttr = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"]
+              .getPropertyValue("order", "order.item.attr.prefix", delegator)>
+          ${uiLabelMap.CommonComment}&nbsp;<input type="text" name="${orderItemAttr}comment"/>
+        </#if>
+        <#-- Variant Selection -->
+        <#if product.isVirtual!?upper_case == "Y">
+          <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
+            <#list featureLists as featureList>
+              <#list featureList as feature>
+                <#if feature_index == 0>
+                  <div>
+                    ${feature.description}:
+                    <select id="FT${feature.productFeatureTypeId}" name="FT${feature.productFeatureTypeId}"
+                        onchange="javascript:checkRadioButton();">
+                      <option value="select" selected="selected">
+                        ${uiLabelMap.EcommerceSelectOption}
+                      </option>
+                <#else>
+                  <option value="${feature.productFeatureId}">
+                    ${feature.description}
+                    <#if feature.price??>
+                      (+ <@ofbizCurrency amount=feature.price?string isoCode=feature.currencyUomId />)
+                    </#if>
+                  </option>
+                </#if>
+              </#list>
+            </select>
             </div>
-          </#if>
-          <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content>
-            <#assign quantityUom = product.getRelatedOne("QuantityUom", true)! />
-            <div>
-              ${uiLabelMap.CommonQuantity}: ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}
+            </#list>
+            <input type="hidden" name="add_product_id" value="${product.productId}"/>
+            <div id="addCart1" style="display:none;">
+            <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonQuantity}:</strong></span>&nbsp;
+              <input type="text" size="5" name="quantity" value="1"/>
+              <a href="javascript:javascript:addItem();" class="buttontext"><span
+                  style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
+              &nbsp;
             </div>
-          </#if>
-    
-          <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content>
-            <#assign weightUom = product.getRelatedOne("WeightUom", true)! />
-            <div>
-              ${uiLabelMap.CommonWeight}: ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}
+            <div id="addCart2" style="display:block;">
+              <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonQuantity}:</strong></span>&nbsp;
+              <input type="text" size="5" value="1" disabled="disabled"/>
+              <a href="javascript:showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonPleaseSelectAllFeaturesFirst}");"
+              class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
+              &nbsp;
             </div>
           </#if>
-          <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content>
-            <#assign heightUom = product.getRelatedOne("HeightUom", true)! />
-            <div>
-              ${uiLabelMap.CommonHeight}: ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}
-            </div>
+          <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE">
+            <#if variantTree?? && (variantTree.size() &gt; 0)>
+              <#list featureSet as currentType>
+                <div>
+                  <select name="FT${currentType}" onchange="javascript:getList(this.name, (this.selectedIndex-1), 1);">
+                    <option>${featureTypes.get(currentType)}</option>
+                  </select>
+                </div>
+              </#list>
+              <span id="product_uom"></span>
+              <input type="hidden" name="product_id" value="${product.productId}"/>
+              <input type="hidden" name="add_product_id" value="NULL"/>
+              <div>
+                <strong><span id="product_id_display"> </span></strong>
+                <strong>
+                  <div id="variant_price_display"></div>
+                </strong>
+              </div>
+            <#else>
+              <input type="hidden" name="add_product_id" value="NULL"/>
+              <#assign inStock = false />
+            </#if>
           </#if>
-          <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content>
-            <#assign widthUom = product.getRelatedOne("WidthUom", true)! />
+        <#else>
+          <input type="hidden" name="add_product_id" value="${product.productId}"/>
+          <#if mainProducts?has_content>
+            <input type="hidden" name="product_id" value=""/>
+            <select name="productVariantId" onchange="javascript:displayProductVirtualVariantId(this.value);">
+              <option value="">Select Unit Of Measure</option>
+              <#list mainProducts as mainProduct>
+                <option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option>
+              </#list>
+            </select><br/>
             <div>
-              ${uiLabelMap.CommonWidth}: ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}
+              <strong><span id="product_id_display"> </span></strong>
+              <strong>
+                <div id="variant_price_display"></div>
+              </strong>
             </div>
           </#if>
-          <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content>
-            <#assign depthUom = product.getRelatedOne("DepthUom", true)! />
-            <div>
-              ${uiLabelMap.CommonDepth}: ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}
-            </div>
+          <#if (availableInventory??) && (availableInventory <= 0) && product.requireAmount?default("N") == "N">
+            <#assign inStock = false />
           </#if>
-    
-          <#if daysToShip??>
-            <div><strong>${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}!</strong></div>
-          </#if>
-    
-          <#-- show tell a friend details only in ecommerce application -->
-          <div>&nbsp;</div>
-          <div>
-              <a href="javascript:popUpSmall('<@ofbizUrl>tellafriend?productId=${product.productId}<#if categoryId??>&categoryId=${categoryId}/</#if></@ofbizUrl>','tellafriend');" class="buttontext">${uiLabelMap.CommonTellAFriend}</a>
-          </div>
-    
-          <#if disFeatureList?? && 0 &lt; disFeatureList.size()>
+        </#if>
+        <#-- check to see if introductionDate hasnt passed yet -->
+        <#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
           <p>&nbsp;</p>
-            <#list disFeatureList as currentFeature>
-                <#assign disFeatureType = currentFeature.getRelatedOne("ProductFeatureType", true) />
-                <div>
-                    <#if disFeatureType.description??>${disFeatureType.get("description", locale)}<#else>${currentFeature.productFeatureTypeId}</#if>:&nbsp;${currentFeature.description}
-                </div>
-            </#list>
-                <div>&nbsp;</div>
-          </#if>
-        </div>
-    
-        <div id="addItemForm">
-          <form method="post" action="<@ofbizUrl>additem</@ofbizUrl>" name="addform"  style="margin: 0;">
-          <fieldset>
-            <#assign inStock = true />
-            <#assign commentEnable = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.comment.enable", delegator)>
-            <#if commentEnable.equals("Y")>
-                <#assign orderItemAttr = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.attr.prefix", delegator)>
-                ${uiLabelMap.CommonComment}&nbsp;<input type="text" name="${orderItemAttr}comment"/>
+          <div style="color: red;">${uiLabelMap.ProductProductNotYetMadeAvailable}.</div>
+        <#-- check to see if salesDiscontinuationDate has passed -->
+        <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
+          <div style="color: red;">${uiLabelMap.ProductProductNoLongerAvailable}.</div>
+        <#-- check to see if the product requires inventory check and has inventory -->
+        <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE">
+          <#if inStock>
+            <#if product.requireAmount?default("N") == "Y">
+              <#assign hiddenStyle = "visible" />
+            <#else>
+              <#assign hiddenStyle = "hidden"/>
             </#if>
-            <#-- Variant Selection -->
-            <#if product.isVirtual!?upper_case == "Y">
-              <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
-                <#list featureLists as featureList>
-                    <#list featureList as feature>
-                        <#if feature_index == 0>
-                            <div>${feature.description}: <select id="FT${feature.productFeatureTypeId}" name="FT${feature.productFeatureTypeId}" onchange="javascript:checkRadioButton();">
-                            <option value="select" selected="selected">${uiLabelMap.EcommerceSelectOption}</option>
-                        <#else>
-                            <option value="${feature.productFeatureId}">${feature.description} <#if feature.price??>(+ <@ofbizCurrency amount=feature.price?string isoCode=feature.currencyUomId />)</#if></option>
-                        </#if>
-                    </#list>
-                    </select>
-                    </div>
-                </#list>
-                  <input type="hidden" name="add_product_id" value="${product.productId}" />
-                <div id="addCart1" style="display:none;">
-                  <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonQuantity}:</strong></span>&nbsp;
-                  <input type="text" size="5" name="quantity" value="1" />
-                  <a href="javascript:javascript:addItem();" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
-                  &nbsp;
-                </div>
-                <div id="addCart2" style="display:block;">
-                  <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonQuantity}:</strong></span>&nbsp;
-                  <input type="text" size="5" value="1" disabled="disabled" />
-                  <a href="javascript:showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonPleaseSelectAllFeaturesFirst}");" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
-                  &nbsp;
-                </div>
-              </#if>
-              <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE">
-               <#if variantTree?? && (variantTree.size() &gt; 0)>
-                <#list featureSet as currentType>
-                  <div>
-                    <select name="FT${currentType}" onchange="javascript:getList(this.name, (this.selectedIndex-1), 1);">
-                      <option>${featureTypes.get(currentType)}</option>
-                    </select>
-                  </div>
-                </#list>
-                <span id="product_uom"></span>
-                <input type="hidden" name="product_id" value="${product.productId}"/>
-                <input type="hidden" name="add_product_id" value="NULL"/>
-                <div>
-                  <strong><span id="product_id_display"> </span></strong>
-                  <strong><div id="variant_price_display"> </div></strong>
-                </div>
-              <#else>
-                <input type="hidden" name="add_product_id" value="NULL"/>
-                <#assign inStock = false />
-              </#if>
-             </#if>
+            <div id="add_amount" class="${hiddenStyle}">
+              <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonAmount}:</strong></span>&nbsp;
+              <input type="text" size="5" name="add_amount" value=""/>
+            </div>
+            <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+              <div>
+                <label>
+                  Start Date(yyyy-mm-dd)
+                </label>
+                <@htmlTemplate.renderDateTimeField event="" action="" name="reservStart" className="" alert=""
+                    title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${startDate}" size="25" maxlength="30"
+                    id="reservStart1" dateType="date" shortDateInput=true timeDropdownParamName=""
+                    defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString=""
+                    hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected=""
+                    pmSelected="" compositeType="" formName=""/>
+              </div>
+              <div>
+              <#--td nowrap="nowrap" align="right">Number<br />of days</td>
+                  <td><input type="textt" size="4" name="reservLength"/></td></tr>
+                  <tr><td>&nbsp;</td><td align="right" nowrap="nowrap">&nbsp;</td-->
+                Number of days<input type="text" size="4" name="reservLength" value=""/>
+                Number of persons<input type="text" size="4" name="reservPersons" value="2"/>
+                Number of rooms<input type="text" size="5" name="quantity" value="1"/>
+              </div>
+              <a href="javascript:addItem()" class="buttontext"><span
+                  style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
             <#else>
-              <input type="hidden" name="add_product_id" value="${product.productId}" />
-              <#if mainProducts?has_content>
-                <input type="hidden" name="product_id" value=""/>
-                <select name="productVariantId" onchange="javascript:displayProductVirtualVariantId(this.value);">
-                    <option value="">Select Unit Of Measure</option>
-                    <#list mainProducts as mainProduct>
-                        <option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option>
-                    </#list>
-                </select><br/>
-                <div>
-                  <strong><span id="product_id_display"> </span></strong>
-                  <strong><div id="variant_price_display"> </div></strong>
-                </div>
-              </#if>
-              <#if (availableInventory??) && (availableInventory <= 0) && product.requireAmount?default("N") == "N">
-                <#assign inStock = false />
-              </#if>
+              <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text"
+                           <#if product.isVirtual!?upper_case == "Y">disabled="disabled"</#if>/></span><a
+                href="javascript:addItem()" id="addToCart" name="addToCart"
+                class="buttontext">${uiLabelMap.OrderAddToCart}</a>
+              <@showUnavailableVarients/>
             </#if>
-            <#-- check to see if introductionDate hasnt passed yet -->
-            <#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
-            <p>&nbsp;</p>
-              <div style="color: red;">${uiLabelMap.ProductProductNotYetMadeAvailable}.</div>
-            <#-- check to see if salesDiscontinuationDate has passed -->
-            <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
-              <div style="color: red;">${uiLabelMap.ProductProductNoLongerAvailable}.</div>
-            <#-- check to see if the product requires inventory check and has inventory -->
-            <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE">
-              <#if inStock>
-                <#if product.requireAmount?default("N") == "Y">
-                  <#assign hiddenStyle = "visible" />
-                <#else>
-                  <#assign hiddenStyle = "hidden"/>
-                </#if>
-                <div id="add_amount" class="${hiddenStyle}">
-                  <span style="white-space: nowrap;"><strong>${uiLabelMap.CommonAmount}:</strong></span>&nbsp;
-                  <input type="text" size="5" name="add_amount" value=""/>
-                </div>
-                <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
-                  <div>
-                    <label>Start Date(yyyy-mm-dd)</label><@htmlTemplate.renderDateTimeField event="" action="" name="reservStart" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${startDate}" size="25" maxlength="30" id="reservStart1" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
-                  </div>
-                  <div>
-                    <#--td nowrap="nowrap" align="right">Number<br />of days</td><td><input type="textt" size="4" name="reservLength"/></td></tr><tr><td>&nbsp;</td><td align="right" nowrap="nowrap">&nbsp;</td-->
-                    Number of days<input type="text" size="4" name="reservLength" value=""/>
-                    Number of persons<input type="text" size="4" name="reservPersons" value="2"/>
-                    Number of rooms<input type="text" size="5" name="quantity" value="1"/>
-                  </div>
-                  <a href="javascript:addItem()" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>
-                <#else>
-                  <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text" <#if product.isVirtual!?upper_case == "Y">disabled="disabled"</#if> /></span><a href="javascript:addItem()" id="addToCart" name="addToCart" class="buttontext">${uiLabelMap.OrderAddToCart}</a>
-                  <@showUnavailableVarients/>
-                </#if>
-                <#else>
-                  <#if productStore??>
-                    <#if productStore.requireInventory?? && productStore.requireInventory == "N">
-                      <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text" <#if product.isVirtual!?upper_case == "Y">disabled="disabled"</#if> /></span><a href="javascript:addItem()" id="addToCart" name="addToCart" class="buttontext">${uiLabelMap.OrderAddToCart}</a>
-                      <@showUnavailableVarients/>
-                    <#else>
-                      <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text" disabled="disabled" /></span><a href="javascript:void(0);" disabled="disabled" class="buttontext">${uiLabelMap.OrderAddToCart}</a><br />
-                      <span>${uiLabelMap.ProductItemOutOfStock}<#if product.inventoryMessage??>&mdash; ${product.inventoryMessage}</#if></span>
-                    </#if>
-                  </#if>
+          <#else>
+            <#if productStore??>
+              <#if productStore.requireInventory?? && productStore.requireInventory == "N">
+                <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text"
+                             <#if product.isVirtual!?upper_case == "Y">disabled="disabled"</#if>/></span><a
+                  href="javascript:addItem()" id="addToCart" name="addToCart"
+                  class="buttontext">${uiLabelMap.OrderAddToCart}</a>
+                <@showUnavailableVarients/>
+              <#else>
+                <span><input name="quantity" id="quantity" value="1" size="4" maxLength="4" type="text"
+                             disabled="disabled"/></span><a href="javascript:void(0);" disabled="disabled"
+                                                            class="buttontext">${uiLabelMap.OrderAddToCart}</a><br/>
+                <span>${uiLabelMap.ProductItemOutOfStock}<#if product.inventoryMessage??>&mdash; ${product.inventoryMessage}</#if></span>
               </#if>
             </#if>
-            <#if variantPriceList??>
-              <#list variantPriceList as vpricing>
-                <#assign variantName = vpricing.get("variantName")!>
-                <#assign secondVariantName = vpricing.get("secondVariantName")!>
-                <#assign minimumQuantity = vpricing.get("minimumQuantity")>
-                <#if minimumQuantity &gt; 0>
-                  <div>minimum order quantity for ${secondVariantName!} ${variantName!} is ${minimumQuantity!}</div>
-                </#if>
-              </#list>
-            <#elseif minimumQuantity?? && minimumQuantity?has_content && minimumQuantity &gt; 0>
-               <div>minimum order quantity for ${productContentWrapper.get("PRODUCT_NAME", "html")!} is ${minimumQuantity!}</div>
+          </#if>
+        </#if>
+        <#if variantPriceList??>
+          <#list variantPriceList as vpricing>
+            <#assign variantName = vpricing.get("variantName")!>
+            <#assign secondVariantName = vpricing.get("secondVariantName")!>
+            <#assign minimumQuantity = vpricing.get("minimumQuantity")>
+            <#if minimumQuantity &gt; 0>
+              <div>minimum order quantity for ${secondVariantName!} ${variantName!} is ${minimumQuantity!}</div>
             </#if>
-            </fieldset>
-          </form>
-        </div>
-        <div>
-          <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
-            <hr />
-            <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
-              <fieldset>
-              <input type="hidden" name="productId" value="${product.productId}" />
-              <input type="hidden" name="product_id" value="${product.productId}" />
-              <input type="hidden" name="productStoreId" value="${productStoreId}" />
-              <input type="hidden" name="reservStart" value= "" />
-              <select name="shoppingListId">
-                <#if shoppingLists?has_content>
-                  <#list shoppingLists as shoppingList>
-                    <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option>
-                  </#list>
-                </#if>
-                <option value="">---</option>
-                <option value="">${uiLabelMap.OrderNewShoppingList}</option>
-              </select>
-              &nbsp;&nbsp;
-              <#--assign nowDate = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowDateString("yyyy-MM-dd")-->
-              <#if product.productTypeId! == "ASSET_USAGE">
-                  &nbsp;${uiLabelMap.CommonStartDate} (yyyy-mm-dd)<@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>&nbsp;Number of&nbsp;days&nbsp;&nbsp;<input type="text" size="4" name="reservLength" />&nbsp;<br/>Number of&nbsp;persons&nbsp;&nbsp;<input type="text" size="4" name="reservPersons" value="1" />&nbsp;&nbsp;Qty&nbsp;&nbsp;<input type="text" size="5" name="quantity" value="1" />
-              <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN">
-                &nbsp;${uiLabelMap.CommonStartDate} (yyyy-mm-dd)&nbsp;&nbsp;&nbsp;<@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>&nbsp;&nbsp;Number of&nbsp;days&nbsp;&nbsp;<input type="text" size="4" name="reservLength" /><input type="hidden" size="4" name="reservPersons" value="1" /><br/>
-                Qty&nbsp;<input type="text" size="5" name="quantity" value="1" />
-              <#else>
-                  <input type="text" size="5" name="quantity" value="1" />
-                  <input type="hidden" name="reservStartStr" value= "" />
+          </#list>
+        <#elseif minimumQuantity?? && minimumQuantity?has_content && minimumQuantity &gt; 0>
+          <div>minimum order quantity for ${productContentWrapper.get("PRODUCT_NAME", "html")!}
+            is ${minimumQuantity!}</div>
+        </#if>
+        </fieldset>
+      </form>
+    </div>
+    <div>
+      <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
+        <hr/>
+        <form name="addToShoppingList" method="post"
+              action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>">
+          <fieldset>
+            <input type="hidden" name="productId" value="${product.productId}"/>
+            <input type="hidden" name="product_id" value="${product.productId}"/>
+            <input type="hidden" name="productStoreId" value="${productStoreId}"/>
+            <input type="hidden" name="reservStart" value=""/>
+            <select name="shoppingListId">
+              <#if shoppingLists?has_content>
+                <#list shoppingLists as shoppingList>
+                  <option value="${shoppingList.shoppingListId}">${shoppingList.listName}</option>
+                </#list>
               </#if>
-              <a href="javascript:addShoplistSubmit();" class="buttontext">${uiLabelMap.OrderAddToShoppingList}</a>
-              </fieldset>
-            </form>
-          <#else> <br />
-            ${uiLabelMap.OrderYouMust} <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBeLogged}</a>
-            ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
+              <option value="">---</option>
+              <option value="">${uiLabelMap.OrderNewShoppingList}</option>
+            </select>
+            &nbsp;&nbsp;
+          <#--assign nowDate = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowDateString("yyyy-MM-dd")-->
+            <#if product.productTypeId! == "ASSET_USAGE">&nbsp;
+              ${uiLabelMap.CommonStartDate}(yyyy-mm-dd)
+              <@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}"
+                  className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30"
+                  id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName=""
+                  defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1=""
+                  hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected=""
+                  compositeType="" formName=""/>&nbsp;Number of&nbsp;days&nbsp;&nbsp;
+              <input type="text" size="4" name="reservLength"/>&nbsp;<br/>Number of&nbsp;persons&nbsp;&nbsp;
+              <input type="text" size="4" name="reservPersons" value="1"/>&nbsp;&nbsp;Qty&nbsp;&nbsp;
+              <input type="text" size="5" name="quantity" value="1"/>
+            <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN">&nbsp;
+              ${uiLabelMap.CommonStartDate}(yyyy-mm-dd)&nbsp;&nbsp;&nbsp;
+              <@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}"
+                  className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30"
+                  id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName=""
+                  defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1=""
+                  hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected=""
+                  compositeType="" formName=""/>&nbsp;&nbsp;Number of&nbsp;days&nbsp;&nbsp;
+              <input type="text" size="4" name="reservLength"/>
+              <input type="hidden" size="4" name="reservPersons" value="1"/><br/>Qty&nbsp;
+              <input type="text" size="5" name="quantity" value="1"/>
+            <#else>
+              <input type="text" size="5" name="quantity" value="1"/>
+              <input type="hidden" name="reservStartStr" value=""/>
+            </#if>
+            <a href="javascript:addShoplistSubmit();" class="buttontext">${uiLabelMap.OrderAddToShoppingList}</a>
+          </fieldset>
+        </form>
+      <#else> <br/>
+        ${uiLabelMap.OrderYouMust}
+        <a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBeLogged}</a>
+        ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.&nbsp;
+      </#if>
+    </div>
+    <#-- Prefill first select box (virtual products only) -->
+    <#if variantTree?? && 0 &lt; variantTree.size()>
+      <script type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
+    </#if>
+
+    <#-- Swatches (virtual products only) -->
+    <#if variantSample?? && 0 &lt; variantSample.size()>
+      <#assign imageKeys = variantSample.keySet() />
+      <#assign imageMap = variantSample />
+      <p>&nbsp;</p>
+      <#assign maxIndex = 7 />
+      <#assign indexer = 0 />
+      <#list imageKeys as key>
+        <#assign swatchProduct = imageMap.get(key) />
+        <#if swatchProduct?has_content && indexer &lt; maxIndex>
+          <#assign imageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")! />
+          <#if !imageUrl?string?has_content>
+            <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")! />
           </#if>
-          </div>
-          <#-- Prefill first select box (virtual products only) -->
-          <#if variantTree?? && 0 &lt; variantTree.size()>
-            <script type="text/javascript">eval("list" + "${featureOrderFirst}" + "()");</script>
+          <#if !imageUrl?string?has_content>
+            <#assign imageUrl = "/images/defaultImage.jpg" />
           </#if>
-    
-          <#-- Swatches (virtual products only) -->
-          <#if variantSample?? && 0 &lt; variantSample.size()>
-            <#assign imageKeys = variantSample.keySet() />
-            <#assign imageMap = variantSample />
-            <p>&nbsp;</p>
-                <#assign maxIndex = 7 />
-                <#assign indexer = 0 />
-                <#list imageKeys as key>
-                  <#assign swatchProduct = imageMap.get(key) />
-                  <#if swatchProduct?has_content && indexer &lt; maxIndex>
-                    <#assign imageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")! />
-                    <#if !imageUrl?string?has_content>
-                      <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")! />
-                    </#if>
-                    <#if !imageUrl?string?has_content>
-                      <#assign imageUrl = "/images/defaultImage.jpg" />
-                    </#if>
-                      <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);" class="linktext">${key}</a>
-                      <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);"><img src="<@ofbizContentUrl>${contentPathPrefix!}${imageUrl}</@ofbizContentUrl>" class="cssImgSmall" alt="" /></a>
-                      <br />
-                  </#if>
-                  <#assign indexer = indexer + 1 />
-                </#list>
-                <#if (indexer > maxIndex)>
-                  <div><strong>${uiLabelMap.ProductMoreOptions}</strong></div>
-                </#if>
-          </#if>
-    
-      <#-- Digital Download Files Associated with this Product -->
-      <#if downloadProductContentAndInfoList?has_content>
-        <div id="download-files">
-          <div>${uiLabelMap.OrderDownloadFilesTitle}:</div>
-          <#list downloadProductContentAndInfoList as downloadProductContentAndInfo>
-            <div>${downloadProductContentAndInfo.contentName!}<#if downloadProductContentAndInfo.description?has_content> - ${downloadProductContentAndInfo.description}</#if></div>
-          </#list>
-        </div>
+          <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);" class="linktext">${key}</a>
+          <a href="javascript:getList('FT${featureOrderFirst}','${indexer}',1);"><img
+              src="<@ofbizContentUrl>${contentPathPrefix!}${imageUrl}</@ofbizContentUrl>" class="cssImgSmall" alt=""/></a>
+          <br/>
+        </#if>
+        <#assign indexer = indexer + 1 />
+      </#list>
+      <#if (indexer > maxIndex)>
+        <div><strong>${uiLabelMap.ProductMoreOptions}</strong></div>
       </#if>
-    
-      <#-- Long description of product -->
-      <div id="long-description">
-          <div>${productContentWrapper.get("LONG_DESCRIPTION", "html")!}</div>
-          <div>${productContentWrapper.get("WARNINGS", "html")!}</div>
+    </#if>
+
+    <#-- Digital Download Files Associated with this Product -->
+    <#if downloadProductContentAndInfoList?has_content>
+      <div id="download-files">
+        <div>${uiLabelMap.OrderDownloadFilesTitle}:</div>
+        <#list downloadProductContentAndInfoList as downloadProductContentAndInfo>
+          <div>${downloadProductContentAndInfo.contentName!}<#if downloadProductContentAndInfo.description?has_content>
+            - ${downloadProductContentAndInfo.description}</#if></div>
+        </#list>
       </div>
-    
-      <#-- Any attributes/etc may go here -->
-    
-      <#-- Product Reviews -->
-        <div id="reviews">
-          <div>${uiLabelMap.OrderCustomerReviews}:</div>
-          <#if averageRating?? && (averageRating &gt; 0) && numRatings?? && (numRatings &gt; 1)>
-              <div>${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})</#if></div>
+    </#if>
+
+    <#-- Long description of product -->
+    <div id="long-description">
+      <div>${productContentWrapper.get("LONG_DESCRIPTION", "html")!}</div>
+      <div>${productContentWrapper.get("WARNINGS", "html")!}</div>
+    </div>
+
+    <#-- Any attributes/etc may go here -->
+
+    <#-- Product Reviews -->
+  <div id="reviews">
+    <div>${uiLabelMap.OrderCustomerReviews}:</div>
+    <#if averageRating?? && (averageRating &gt; 0) && numRatings?? && (numRatings &gt; 1)>
+      <div>${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??>
+        (${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})</#if></div>
+    </#if>
+    <hr/>
+    <#if productReviews?has_content>
+      <#list productReviews as productReview>
+        <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false) />
+        <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)! />
+        <div>
+          <strong>${uiLabelMap.CommonBy} : </strong>
+          <#if productReview.postedAnonymous?default("N") == "Y">
+            ${uiLabelMap.OrderAnonymous}
+          <#else>
+            ${postedPerson.firstName} ${postedPerson.lastName}&nbsp;
           </#if>
-    <hr />
-          <#if productReviews?has_content>
-            <#list productReviews as productReview>
-              <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false) />
-              <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)! />
-                        <div><strong>${uiLabelMap.CommonBy}: </strong><#if productReview.postedAnonymous?default("N") == "Y"> ${uiLabelMap.OrderAnonymous}<#else> ${postedPerson.firstName} ${postedPerson.lastName}&nbsp;</#if></div>
-                        <div><strong>${uiLabelMap.CommonAt}: </strong>${productReview.postedDateTime!}&nbsp;</div>
-                        <div><strong>${uiLabelMap.OrderRanking}: </strong>${productReview.productRating!?string}</div>
-                        <div>&nbsp;</div>
-                        <div>${productReview.productReview!}</div>
-                    <hr />
-            </#list>
-            <div>
-                <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>" class="linktext">${uiLabelMap.ProductReviewThisProduct}!</a>
-            </div>
-          <#else>
-            <div>${uiLabelMap.ProductProductNotReviewedYet}.</div>
-            <div>
-                <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>" class="linktext">${uiLabelMap.ProductBeTheFirstToReviewThisProduct}</a>
-            </div>
         </div>
-      </#if>
+        <div><strong>${uiLabelMap.CommonAt}: </strong>${productReview.postedDateTime!}&nbsp;</div>
+        <div><strong>${uiLabelMap.OrderRanking}: </strong>${productReview.productRating!?string}</div>
+        <div>&nbsp;</div>
+        <div>${productReview.productReview!}</div>
+        <hr/>
+      </#list>
+      <div>
+        <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>"
+           class="linktext">${uiLabelMap.ProductReviewThisProduct}!</a>
+      </div>
+    <#else>
+      <div>${uiLabelMap.ProductProductNotReviewedYet}.</div>
+      <div>
+        <a href="<@ofbizUrl>reviewProduct?category_id=${categoryId!}&amp;product_id=${product.productId}</@ofbizUrl>"
+           class="linktext">${uiLabelMap.ProductBeTheFirstToReviewThisProduct}</a>
+      </div>
+    </div>
+    </#if>
     <#-- Upgrades/Up-Sell/Cross-Sell -->
-      <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName>
+    <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName>
       <#assign pageProduct = product />
       <#assign targetRequest = "product" />
       <#if targetRequestName?has_content>
@@ -810,109 +979,122 @@
         <#assign targetRequest = targetRequestName />
       </#if>
       <#if assocProducts?has_content>
-        <h2>${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2>
-    
+        <h2>
+          ${beforeName!}
+          <#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}
+        </h2>
+
         <div class="productsummary-container">
-        <#list assocProducts as productAssoc>
+          <#list assocProducts as productAssoc>
             <#if productAssoc.productId == product.productId>
-                <#assign assocProductId = productAssoc.productIdTo />
+              <#assign assocProductId = productAssoc.productIdTo />
             <#else>
-                <#assign assocProductId = productAssoc.productId />
+              <#assign assocProductId = productAssoc.productId />
             </#if>
             <div>
-              <a href="<@ofbizUrl>${targetRequest}/<#if categoryId??>~category_id=${categoryId}/</#if>~product_id=${assocProductId}</@ofbizUrl>" class="buttontext">
-                ${assocProductId}
+              <a href="<@ofbizUrl>${targetRequest}/<#if categoryId??>~category_id=${categoryId}/</#if>~product_id=${assocProductId}</@ofbizUrl>"
+                 class="buttontext">
+              ${assocProductId}
               </a>
-            <#if productAssoc.reason?has_content>
-              - <strong>${productAssoc.reason}</strong>
-            </#if>
+              <#if productAssoc.reason?has_content>
+                - <strong>${productAssoc.reason}</strong>
+              </#if>
             </div>
           ${setRequestAttribute("optProductId", assocProductId)}
           ${setRequestAttribute("listIndex", listIndex)}
           ${setRequestAttribute("formNamePrefix", formNamePrefix)}
-          <#if targetRequestName?has_content>
+            <#if targetRequestName?has_content>
             ${setRequestAttribute("targetRequestName", targetRequestName)}
-          </#if>
-              ${screens.render(productsummaryScreen)}
-          <#assign product = pageProduct />
-          <#local listIndex = listIndex + 1 />
-        </#list>
+            </#if>
+          ${screens.render(productsummaryScreen)}
+            <#assign product = pageProduct />
+            <#local listIndex = listIndex + 1 />
+          </#list>
         </div>
-    
-        ${setRequestAttribute("optProductId", "")}
-        ${setRequestAttribute("formNamePrefix", "")}
-        ${setRequestAttribute("targetRequestName", "")}
+
+      ${setRequestAttribute("optProductId", "")}
+      ${setRequestAttribute("formNamePrefix", "")}
+      ${setRequestAttribute("targetRequestName", "")}
       </#if>
     </#macro>
-    
+
     <#assign productValue = product />
     <#assign listIndex = 1 />
     ${setRequestAttribute("productValue", productValue)}
     <div id="associated-products">
-        <#-- also bought -->
-        <@associated assocProducts=alsoBoughtProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductAlsoBought}" formNamePrefix="albt" targetRequestName="" />
-        <#-- obsolete -->
-        <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolete}" formNamePrefix="obs" targetRequestName="" />
-        <#-- cross sell -->
-        <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductCrossSell}" formNamePrefix="cssl" targetRequestName="crosssell" />
-        <#-- up sell -->
-        <@associated assocProducts=upSellProducts beforeName="${uiLabelMap.ProductUpSell} " showName="Y" afterName=":" formNamePrefix="upsl" targetRequestName="upsell" />
-        <#-- obsolescence -->
-        <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolescense}" formNamePrefix="obce" targetRequestName="" />
+    <#-- also bought -->
+      <@associated assocProducts=alsoBoughtProducts beforeName="" showName="N"
+          afterName="${uiLabelMap.ProductAlsoBought}" formNamePrefix="albt" targetRequestName="" />
+      <#-- obsolete -->
+      <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolete}"
+          formNamePrefix="obs" targetRequestName="" />
+      <#-- cross sell -->
+      <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductCrossSell}"
+          formNamePrefix="cssl" targetRequestName="crosssell" />
+      <#-- up sell -->
+      <@associated assocProducts=upSellProducts beforeName="${uiLabelMap.ProductUpSell} " showName="Y" afterName=":"
+          formNamePrefix="upsl" targetRequestName="upsell" />
+      <#-- obsolescence -->
+      <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y"
+          afterName=" ${uiLabelMap.ProductObsolescense}" formNamePrefix="obce" targetRequestName="" />
     </div>
-    
-    <#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) -->
-    <#if commonFeatureResultIds?has_content>
-        <h2>${uiLabelMap.ProductSimilarProducts}</h2>
-    
-        <div class="productsummary-container">
-            <#list commonFeatureResultIds as commonFeatureResultId>
-                ${setRequestAttribute("optProductId", commonFeatureResultId)}
-                ${setRequestAttribute("listIndex", commonFeatureResultId_index)}
-                ${setRequestAttribute("formNamePrefix", "cfeatcssl")}
-                <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} -->
-                ${screens.render(productsummaryScreen)}
+
+  <#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) -->
+  <#if commonFeatureResultIds?has_content>
+    <h2>${uiLabelMap.ProductSimilarProducts}</h2>
+
+    <div class="productsummary-container">
+      <#list commonFeatureResultIds as commonFeatureResultId>
+        ${setRequestAttribute("optProductId", commonFeatureResultId)}
+        ${setRequestAttribute("listIndex", commonFeatureResultId_index)}
+        ${setRequestAttribute("formNamePrefix", "cfeatcssl")}
+        <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} -->
+        ${screens.render(productsummaryScreen)}
+      </#list>
+    </div>
+  </#if>
+    <div class="product-tags">
+      <p class="titleProductTags">
+      <h3>${uiLabelMap.EcommerceProductTags}</h3></p>
+    <#if productTags??>
+      <p class="titleAddTags"><strong>${uiLabelMap.EcommerceProductTagsDetail}:</strong></p>
+      <p>
+        <ul>
+          <li>
+            <#assign no = 0 />
+            <#list productTags?keys?sort as productTag>
+              <#assign tagValue = productTags.get(productTag)!/>
+              <#if tagValue?has_content>
+                <span>
+                  <a href="javascript:void(0);" id="productTag_${productTag}">${productTag}</a>
+                  (${tagValue}) <#if no < (productTags.size() - 1)> | </#if>
+                </span>
+                <#assign no = no + 1 />
+              </#if>
             </#list>
-        </div>
+          </li>
+        </ul>
+      </p>
     </#if>
-    <div class="product-tags">
-        <p class="titleProductTags"><h3>${uiLabelMap.EcommerceProductTags}</h3></p>
-        <#if productTags??>
-            <p class="titleAddTags"><strong>${uiLabelMap.EcommerceProductTagsDetail}:</strong></p>
-            <p>
-                <ul>
-                    <li>
-                    <#assign no = 0 />
-                    <#list productTags?keys?sort as productTag>
-                        <#assign tagValue = productTags.get(productTag)!/>
-                        <#if tagValue?has_content>
-                              <span><a href="javascript:void(0);" id="productTag_${productTag}">${productTag}</a> (${tagValue}) <#if no < (productTags.size() - 1)> | </#if></span>
-                              <#assign no = no + 1 />
-                        </#if>
-                    </#list>
-                    </li>
-                </ul>
-            </p>
-        </#if>
-        
-        <p class="titleAddTags"><strong>${uiLabelMap.EcommerceAddYourTags}:</strong></p>
-        <p>
-            <form method="post" action="<@ofbizUrl>addProductTags</@ofbizUrl>" name="addProductTags">
-                <input type="hidden" name="productId" value="${product.productId!}"/>
-                <input class="inputProductTags" type="text" value="" name="productTags" id="productTags" size="40"/>
-                <input class="buttonProductTags" type="submit" value="${uiLabelMap.EcommerceAddTags}" name="addTag"/>
-            </form>
-            <span>${uiLabelMap.EcommerceAddTagsDetail}</span>
-        </p>
+
+      <p class="titleAddTags"><strong>${uiLabelMap.EcommerceAddYourTags}:</strong></p>
+      <p>
+      <form method="post" action="<@ofbizUrl>addProductTags</@ofbizUrl>" name="addProductTags">
+        <input type="hidden" name="productId" value="${product.productId!}"/>
+        <input class="inputProductTags" type="text" value="" name="productTags" id="productTags" size="40"/>
+        <input class="buttonProductTags" type="submit" value="${uiLabelMap.EcommerceAddTags}" name="addTag"/>
+      </form>
+      <span>${uiLabelMap.EcommerceAddTagsDetail}</span>
+      </p>
     </div>
-    <hr />
+    <hr/>
     <form action="<@ofbizUrl>tagsearch</@ofbizUrl>" method="post" name="productTagsearchform" id="productTagsearchform">
-        <input type="hidden" name="keywordTypeId" value="KWT_TAG"/>
-        <input type="hidden" name="statusId" value="KW_APPROVED"/>
-        <input type="hidden" name="clearSearch" value="Y"/>
-        <input type="hidden" name="VIEW_SIZE" value="10"/>
-        <input type="hidden" name="PAGING" value="Y"/>
-        <input type="hidden" name="SEARCH_STRING" id="productTagStr"/>
+      <input type="hidden" name="keywordTypeId" value="KWT_TAG"/>
+      <input type="hidden" name="statusId" value="KW_APPROVED"/>
+      <input type="hidden" name="clearSearch" value="Y"/>
+      <input type="hidden" name="VIEW_SIZE" value="10"/>
+      <input type="hidden" name="PAGING" value="Y"/>
+      <input type="hidden" name="SEARCH_STRING" id="productTagStr"/>
     </form>
-    </div>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/catalog/ProductReview.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ProductReview.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ProductReview.ftl	(working copy)
@@ -63,8 +63,12 @@
         <textarea class="textAreaBox" name="productReview" cols="40"></textarea>
       </div>
       <div>
-        <a href="javascript:document.getElementById('reviewProduct').submit();" class="button">[${uiLabelMap.CommonSave}]</a>
-        <a href="<@ofbizUrl>product?product_id=${requestParameters.product_id}</@ofbizUrl>" class="button">[${uiLabelMap.CommonCancel}]</a>
+        <a href="javascript:document.getElementById('reviewProduct').submit();" class="button">
+          [${uiLabelMap.CommonSave}]
+        </a>
+        <a href="<@ofbizUrl>product?product_id=${requestParameters.product_id}</@ofbizUrl>" class="button">
+          [${uiLabelMap.CommonCancel}]
+        </a>
       </div>
     </fieldset>
   </form>
Index: specialpurpose/ecommerce/template/catalog/ShowBestSellingCategory.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/ShowBestSellingCategory.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/ShowBestSellingCategory.ftl	(working copy)
@@ -18,74 +18,86 @@
 -->
 
 <#if productCategoryList?has_content>
-    <h1>Popular Categories</h1>
-    <div class="productsummary-container matrix">
-       <table>
-           <tbody>
-
-            <#list productCategoryList as childCategoryList>
-                   <tr>
-                   <#assign cateCount = 0/>
-                   <#list childCategoryList as productCategory>
-                       <#if (cateCount > 2)>
-                            <tr>
-                            <#assign cateCount = 0/>
-                       </#if>
-                       <#assign productCategoryId = productCategory.productCategoryId/>
-                       <#assign categoryImageUrl = "/images/defaultImage.jpg">
-                       <#assign productCategoryMembers = delegator.findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryId), Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)>
-                       <#if productCategory.categoryImageUrl?has_content>
-                            <#assign categoryImageUrl = productCategory.categoryImageUrl/>
-                       <#elseif productCategoryMembers?has_content>
-                            <#assign productCategoryMember = Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/>
-                            <#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)/>
-                            <#if product.smallImageUrl?has_content>
-                                <#assign categoryImageUrl = product.smallImageUrl/>
+  <h1>Popular Categories</h1>
+  <div class="productsummary-container matrix">
+    <table>
+      <tbody>
+        <#list productCategoryList as childCategoryList>
+          <tr>
+            <#assign cateCount = 0/>
+            <#list childCategoryList as productCategory>
+              <#if (cateCount > 2)>
+                <tr>
+                  <#assign cateCount = 0/>
+              </#if>
+              <#assign productCategoryId = productCategory.productCategoryId/>
+              <#assign categoryImageUrl = "/images/defaultImage.jpg">
+              <#assign productCategoryMembers = delegator
+                  .findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"]
+                  .toMap("productCategoryId", productCategoryId),
+                  Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)>
+              <#if productCategory.categoryImageUrl?has_content>
+                <#assign categoryImageUrl = productCategory.categoryImageUrl/>
+              <#elseif productCategoryMembers?has_content>
+                <#assign productCategoryMember =
+                    Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/>
+                <#assign product = delegator.findOne("Product",
+                    Static["org.apache.ofbiz.base.util.UtilMisc"]
+                    .toMap("productId", productCategoryMember.productId), false)/>
+                <#if product.smallImageUrl?has_content>
+                  <#assign categoryImageUrl = product.smallImageUrl/>
+                </#if>
+              </#if>
+              <td>
+                <div class="productsummary">
+                  <div class="smallimage">
+                    <a href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
+                      <span class="popup_link"><img alt="Small Image" src="${categoryImageUrl}"></span>
+                    </a>
+                  </div>
+                  <div class="productbuy">
+                    <a class="linktext" style="font-size:12px"
+                        href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
+                      ${productCategory.categoryName!productCategoryId}
+                    </a>
+                  </div>
+                  <div class="productinfo">
+                    <ul>
+                      <#if productCategoryMembers??>
+                        <#assign i = 0/>
+                        <#list productCategoryMembers as productCategoryMember>
+                          <#if (i > 2)>
+                            <#if productCategoryMembers[i]?has_content>
+                              <a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
+                                <span>More...</span>
+                              </a>
                             </#if>
-                       </#if>
-                        <td>
-                            <div class="productsummary">
-                                <div class="smallimage">
-                                    <a href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
-                                        <span class="popup_link"><img alt="Small Image" src="${categoryImageUrl}"></span>
-                                    </a>
-                                </div>
-                                <div class="productbuy">
-                                    <a class="linktext"  style="font-size:12px" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">${productCategory.categoryName!productCategoryId}</a>
-                                </div>
-                                <div class="productinfo">
-                                    <ul>
-                                    <#if productCategoryMembers??>
-                                        <#assign i = 0/>
-                                        <#list productCategoryMembers as productCategoryMember>
-                                            <#if (i > 2)>
-                                                <#if productCategoryMembers[i]?has_content>
-                                                    <a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId=productCategoryId/>">
-                                                        <span>More...</span>
-                                                    </a>
-                                                </#if>
-                                                <#break>
-                                            </#if>
-                                            <#if productCategoryMember?has_content>
-                                                <#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)>
-                                                <li class="browsecategorytext">
-                                                    <a class="linktext" href="<@ofbizCatalogAltUrl productCategoryId="PROMOTIONS" productId="${product.productId}"/>">
-                                                        ${product.productName!product.productId}
-                                                    </a>
-                                                </li>
-                                            </#if>
-                                            <#assign i = i+1/>
-                                        </#list>
-                                    </#if>
-                                    </ul>
-                                </div>
-                            </div>
-                        </td>
-                        <#assign cateCount = cateCount + 1/>
-                 </#list>
-               <tr/>
+                            <#break>
+                          </#if>
+                          <#if productCategoryMember?has_content>
+                            <#assign product = delegator.findOne("Product",
+                                Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId",
+                                productCategoryMember.productId), false)>
+                            <li class="browsecategorytext">
+                              <a class="linktext"
+                                  href="<@ofbizCatalogAltUrl productCategoryId="PROMOTIONS"
+                                  productId="${product.productId}"/>">
+                                ${product.productName!product.productId}
+                              </a>
+                            </li>
+                          </#if>
+                          <#assign i = i+1/>
+                        </#list>
+                      </#if>
+                    </ul>
+                  </div>
+                </div>
+              </td>
+              <#assign cateCount = cateCount + 1/>
             </#list>
-        </tbody>
-      </table>
-    </div>
+          <tr/>
+        </#list>
+      </tbody>
+    </table>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/SideDeepCategory.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/SideDeepCategory.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/SideDeepCategory.ftl	(working copy)
@@ -22,12 +22,14 @@
 
 <#-- looping macro -->
 <#macro categoryList parentCategory category wrapInBox>
-  <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
+  <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+      catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
     <#assign categoryName = catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")>
   <#else>
     <#assign categoryName = category.categoryName!>
   </#if>
-  <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
+  <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+      catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
     <#assign categoryDescription = catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")>
   <#else>
     <#assign categoryDescription = category.description!>
@@ -41,7 +43,13 @@
     <div  id="sidedeepcategory" class="screenlet">
       <div class="screenlet-title-bar">
         <ul>
-          <li class="h3"><#if categoryDescription?has_content>${categoryDescription}<#else>${categoryName?default("")}</#if></li>
+          <li class="h3">
+            <#if categoryDescription?has_content>
+              ${categoryDescription}
+            <#else>
+              ${categoryName?default("")}
+            </#if>
+          </li>
         </ul>
         <br class="clear"/>
       </div>
@@ -48,46 +56,56 @@
       <div class="screenlet-body">
         <div class="browsecategorylist">
   </#if>
-        <li class="browsecategorytext">
-          <#if parentCategory?has_content>
-            <#assign parentCategoryId = parentCategory.productCategoryId/>
-          <#else>
-            <#assign parentCategoryId = ""/>
-          </#if>
-          <a href="<@ofbizCatalogAltUrl productCategoryId=category.productCategoryId previousCategoryId=parentCategoryId/>" class="${browseCategoryButtonClass}"><#if categoryName?has_content>${categoryName}<#else>${categoryDescription?default("")}</#if></a>
+  <li class="browsecategorytext">
+    <#if parentCategory?has_content>
+      <#assign parentCategoryId = parentCategory.productCategoryId/>
+    <#else>
+      <#assign parentCategoryId = ""/>
+    </#if>
+    <a href="<@ofbizCatalogAltUrl productCategoryId=category.productCategoryId
+        previousCategoryId=parentCategoryId/>" class="${browseCategoryButtonClass}">
+      <#if categoryName?has_content>
+        ${categoryName}
+      <#else>
+        ${categoryDescription?default("")}
+      </#if>
+    </a>
 
-  <#if (Static["org.apache.ofbiz.product.category.CategoryWorker"].checkTrailItem(request, category.getString("productCategoryId"))) || (curCategoryId?? && curCategoryId == category.productCategoryId)>
-    <#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"].getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)>
-    <#if subCatList??>
-      <#list subCatList as subCat>
-        <ul class="browsecategorylist">
-          <@categoryList parentCategory=category category=subCat wrapInBox="N"/>
-        </ul>
-      </#list>
+    <#if (Static["org.apache.ofbiz.product.category.CategoryWorker"]
+        .checkTrailItem(request, category.getString("productCategoryId"))) ||
+        (curCategoryId?? && curCategoryId == category.productCategoryId)>
+      <#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"]
+          .getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)>
+      <#if subCatList??>
+        <#list subCatList as subCat>
+          <ul class="browsecategorylist">
+            <@categoryList parentCategory=category category=subCat wrapInBox="N"/>
+          </ul>
+        </#list>
+      </#if>
     </#if>
-  </#if>
   </li>
   <#if wrapInBox == "Y">
+        </div>
       </div>
     </div>
-  </div>
   </#if>
 </#macro>
 
 <#if topLevelList?has_content>
-<div id="sidedeepcategory" class="screenlet">
-  <div class="screenlet-title-bar">
-    <ul>
-      <li class="h3">${uiLabelMap.ProductBrowseCategories}</li>
-    </ul>
-    <br class="clear"/>
+  <div id="sidedeepcategory" class="screenlet">
+    <div class="screenlet-title-bar">
+      <ul>
+        <li class="h3">${uiLabelMap.ProductBrowseCategories}</li>
+      </ul>
+      <br class="clear"/>
+    </div>
+    <div class="screenlet-body">
+      <ul class="browsecategorylist">
+        <#list topLevelList as category>
+          <@categoryList parentCategory="" category=category wrapInBox="N"/>
+        </#list>
+      </ul>
+    </div>
   </div>
-  <div class="screenlet-body">
-    <ul class="browsecategorylist">
-      <#list topLevelList as category>
-        <@categoryList parentCategory="" category=category wrapInBox="N"/>
-      </#list>
-    </ul>
-  </div>
-</div>
 </#if>
Index: specialpurpose/ecommerce/template/catalog/TellAFriend.ftl
===================================================================
--- specialpurpose/ecommerce/template/catalog/TellAFriend.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/catalog/TellAFriend.ftl	(working copy)
@@ -18,49 +18,51 @@
 -->
 
 <html>
-<head>
-  <title>${uiLabelMap.EcommerceTellAFriend}</title>
-</head>
+  <head>
+    <title>${uiLabelMap.EcommerceTellAFriend}</title>
+  </head>
 <body class="ecbody">
-    <form name="tellafriend" action="<@ofbizUrl>emailFriend</@ofbizUrl>" method="post">
-        <#if (requestParameters.productId)?? || (requestParameters.productId)??>
-            <input type="hidden" name="pageUrl" value="<@ofbizCatalogAltUrl fullPath="true" secure="false" productCategoryId=requestParameters.categoryId!"" productId=requestParameters.productId!""/>" />
-        <#else>
-            <#assign cancel = "Y">
-        </#if>
-        <input type="hidden" name="webSiteId" value="${context.webSiteId!}">
-      <#if !cancel??>
-        <table>
-          <tr>
-            <td>${uiLabelMap.CommonYouremail}:</td>
-            <td><input type="text" name="sendFrom" size="30" /></td>
-          </tr>
-          <tr>
-            <td>${uiLabelMap.CommonEmailTo}:</td>
-            <td><input type="text" name="sendTo" size="30" /></td>
-          </tr>
-          <tr>
-            <td colspan="2" align="center">${uiLabelMap.CommonMessage}</td>
-          </tr>
-          <tr>
-            <td colspan="2" align="center">
-              <textarea cols="40"  rows="5" name="message"></textarea>
-            </td>
-          </tr>
-          <tr>
-            <td colspan="2" align="center">
-              <input type="submit" value="${uiLabelMap.CommonSend}" />
-            </td>
-          </tr>
-        </table>
-      <#else>
-        <script language="JavaScript" type="text/javascript">
+  <form name="tellafriend" action="<@ofbizUrl>emailFriend</@ofbizUrl>" method="post">
+    <#if (requestParameters.productId)?? || (requestParameters.productId)??>
+      <input type="hidden" name="pageUrl" value="<@ofbizCatalogAltUrl fullPath="true"
+          secure="false" productCategoryId=requestParameters.categoryId!""
+          productId=requestParameters.productId!""/>"/>
+    <#else>
+      <#assign cancel = "Y">
+    </#if>
+      <input type="hidden" name="webSiteId" value="${context.webSiteId!}">
+    <#if !cancel??>
+      <table>
+        <tr>
+          <td>${uiLabelMap.CommonYouremail}:</td>
+          <td><input type="text" name="sendFrom" size="30"/></td>
+        </tr>
+        <tr>
+          <td>${uiLabelMap.CommonEmailTo}:</td>
+          <td><input type="text" name="sendTo" size="30"/></td>
+        </tr>
+        <tr>
+          <td colspan="2" align="center">${uiLabelMap.CommonMessage}</td>
+        </tr>
+        <tr>
+          <td colspan="2" align="center">
+            <textarea cols="40" rows="5" name="message"></textarea>
+          </td>
+        </tr>
+        <tr>
+          <td colspan="2" align="center">
+            <input type="submit" value="${uiLabelMap.CommonSend}"/>
+          </td>
+        </tr>
+      </table>
+    <#else>
+      <script language="JavaScript" type="text/javascript">
         <!-- //
         window.close();
         // -->
-        </script>
-        <div>${uiLabelMap.EcommerceTellAFriendSorry}</div>
-      </#if>
-    </form>
+      </script>
+      <div>${uiLabelMap.EcommerceTellAFriendSorry}</div>
+    </#if>
+  </form>
 </body>
 </html>
Index: specialpurpose/ecommerce/template/content/BlogLib.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/BlogLib.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/BlogLib.ftl	(working copy)
@@ -18,38 +18,49 @@
 -->
 
 <#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" >
-    <#local indent = "">
-    <#local csv = "">
-    <#local counter = 0>
-    <#local len = trail?size>
-    <table border="0" cellspacing="4">
+  <#local indent = "">
+  <#local csv = "">
+  <#local counter = 0>
+  <#local len = trail?size>
+  <table border="0" cellspacing="4">
     <#list trail as content>
       <#if counter < (len - endIndexOffset) && startIndex <= counter >
         <#if 0 < counter >
-            <#local csv = csv + ","/>
+          <#local csv = csv + ","/>
         </#if>
         <#local csv = csv + content.contentId/>
         <#if counter < len && startIndex <= counter >
-       <tr>
-         <td >
+        <tr>
+          <td>
             ${indent}
             <#if content.contentTypeId == "WEB_SITE_PUB_PT" >
-              <a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonBackTo}
+              </a>
+              &nbsp;${content.contentName!}
             <#else>
-              <a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonBackTo}
+              </a>
+              &nbsp;${content.contentName!}
             </#if>
             <#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
             [${content.contentId!}]
             <#if searchOn?has_content && searchOn?lower_case == "true">
-                &nbsp;
-              <a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
+              &nbsp;
+              <a class="tabButton"
+                  href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonSearch}
+              </a>
             </#if>
-        </#if>
-         </td>
-       </tr>
+            </#if>
+          </td>
+        </tr>
       </#if>
       <#local counter = counter + 1>
-    <#if 20 < counter > <#break/></#if>
+      <#if 20 < counter > <#break/></#if>
     </#list>
-    </table>
+  </table>
 </#macro>
Index: specialpurpose/ecommerce/template/content/ContentCategories.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/ContentCategories.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/ContentCategories.ftl	(working copy)
@@ -42,7 +42,10 @@
       <#assign count_1=0/>
       <@loopSubContent contentId=contentRootId viewIndex=0 viewSize=9999 orderBy="contentName">
         <li class="browsecategorytext">
-          <a href="<@ofbizUrl>showcontenttree?contentId=${subContentId}&amp;nodeTrailCsv=${subContentId}</@ofbizUrl>" class="browsecategorybutton">${content.contentName}</a>
+          <a href="<@ofbizUrl>showcontenttree?contentId=${subContentId}&amp;nodeTrailCsv=${subContentId}</@ofbizUrl>"
+              class="browsecategorybutton">
+            ${content.contentName}
+          </a>
         </li>
         <#assign count_1=(count_1 + 1)/>
       </@loopSubContent>
Index: specialpurpose/ecommerce/template/content/MiniPoll.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/MiniPoll.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/MiniPoll.ftl	(working copy)
@@ -19,7 +19,8 @@
 
 <#assign groupName = page.randomSurveyGroup!>
 <#if groupName?has_content>
-  <#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getRandomSurveyWrapper(request, "testSurveyGroup")!>
+  <#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
+      .getRandomSurveyWrapper(request, "testSurveyGroup")!>
 </#if>
 
 <#if randomSurvey?has_content>
@@ -31,7 +32,9 @@
       <br class="clear"/>
     </div>
     <div class="screenlet-body">
-      <form method="post" action="<@ofbizUrl>minipoll<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" style="margin: 0;">
+      <form method="post"
+          action="<@ofbizUrl>minipoll<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>"
+          style="margin: 0;">
         ${randomSurvey.render()}
       </form>
     </div>
Index: specialpurpose/ecommerce/template/content/RecentlyViewed.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/RecentlyViewed.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/RecentlyViewed.ftl	(working copy)
@@ -28,7 +28,9 @@
     <div class="screenlet-body">
       <#list mrvList as mrvArr>
         <div class="browsecategorytext">
-          <a href="<@ofbizUrl>viewcontent?contentId=${mrvArr[0]}</@ofbizUrl>" class="browsecategorybutton">${mrvArr[1]}</a>
+          <a href="<@ofbizUrl>viewcontent?contentId=${mrvArr[0]}</@ofbizUrl>" class="browsecategorybutton">
+            ${mrvArr[1]}
+          </a>
         </div>
       </#list>
     </div>
Index: specialpurpose/ecommerce/template/content/SearchContent.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/SearchContent.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/SearchContent.ftl	(working copy)
@@ -19,80 +19,80 @@
 
 
 <form method="post"  action="<@ofbizUrl>searchContent</@ofbizUrl>"  name="searchQuery">
-<table border="0" cellpadding="2" cellspacing="0">
-
-<tr>
-<td width="20%" align="right">
-<span class="tableheadtext">${uiLabelMap.EcommerceEnterQueryParameters}</span>
-</td>
-<td>&nbsp;</td>
-<td width="80%">
-<input type="text" class="inputBox" name="queryLine" size="60"/>
-</td>
-</tr>
-<tr>
-
-
-<!-- category form -->
-<tr>
-  <table>
+  <table border="0" cellpadding="2" cellspacing="0">
     <tr>
-      <td align="right" valign="middle">
-        <div>${uiLabelMap.ProductFeatures}:</div>
+      <td width="20%" align="right">
+        <span class="tableheadtext">${uiLabelMap.EcommerceEnterQueryParameters}</span>
       </td>
-      <td align="right" valign="middle">
-        <div>
-          ${uiLabelMap.CommonAll} <input type="radio" name="any_or_all" value="all" checked="checked" />
-          ${uiLabelMap.CommonAny} <input type="radio" name="any_or_all" value="any" />
-        </div>
+      <td>&nbsp;</td>
+      <td width="80%">
+        <input type="text" class="inputBox" name="queryLine" size="60"/>
       </td>
     </tr>
-    <#list productFeatureTypeIdsOrdered as productFeatureTypeId>
-      <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)>
-      <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
-      <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
+    <tr>
+      <!-- category form -->
+    <tr>
+    <table>
       <tr>
         <td align="right" valign="middle">
-          <div>${(productFeatureType.get("description",locale))!}:</div>
+          <div>${uiLabelMap.ProductFeatures}:</div>
         </td>
-        <td valign="middle">
+        <td align="right" valign="middle">
           <div>
-            <select class="selectBox" name="pft_${productFeatureTypeId}">
-              <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
-              <#list productFeatures as productFeature>
-              <option value="${productFeature.productFeatureId}">${productFeature.description?default("No Description")} [${productFeature.productFeatureId}]</option>
-              </#list>
-            </select>
+            ${uiLabelMap.CommonAll} <input type="radio" name="any_or_all" value="all" checked="checked" />
+            ${uiLabelMap.CommonAny} <input type="radio" name="any_or_all" value="any" />
           </div>
         </td>
       </tr>
-    </#list>
-    <#if searchConstraintStrings?has_content>
-      <tr>
-        <td align="right" valign="top">
-          <div>${uiLabelMap.ProductLastSearch}:</div>
-        </td>
-        <td valign="top">
+      <#list productFeatureTypeIdsOrdered as productFeatureTypeId>
+        <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"]
+            .toMap("productFeatureTypeId", productFeatureTypeId)>
+        <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)>
+        <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]>
+        <tr>
+          <td align="right" valign="middle">
+            <div>${(productFeatureType.get("description",locale))!}:</div>
+          </td>
+          <td valign="middle">
+            <div>
+              <select class="selectBox" name="pft_${productFeatureTypeId}">
+                <option value="">- ${uiLabelMap.CommonSelectAny} -</option>
+                <#list productFeatures as productFeature>
+                  <option value="${productFeature.productFeatureId}">
+                    ${productFeature.description?default("No Description")} [${productFeature.productFeatureId}]
+                  </option>
+                </#list>
+              </select>
+            </div>
+          </td>
+        </tr>
+      </#list>
+      <#if searchConstraintStrings?has_content>
+        <tr>
+          <td align="right" valign="top">
+            <div>${uiLabelMap.ProductLastSearch}:</div>
+          </td>
+          <td valign="top">
             <#list searchConstraintStrings as searchConstraintString>
-                <div>&nbsp;-&nbsp;${searchConstraintString}</div>
+              <div>&nbsp;-&nbsp;${searchConstraintString}</div>
             </#list>
             <div>${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}</div>
             <div>
-              ${uiLabelMap.ProductNewSearch}<input type="radio" name="clearSearch" value="Y" checked="checked" />
-              ${uiLabelMap.CommonRefineSearch}<input type="radio" name="clearSearch" value="N" />
+              ${uiLabelMap.ProductNewSearch}
+              <input type="radio" name="clearSearch" value="Y" checked="checked" />
+              ${uiLabelMap.CommonRefineSearch}
+              <input type="radio" name="clearSearch" value="N" />
             </div>
-        </td>
+          </td>
+        </tr>
+      </#if>
+      <td width="20%" align="right">&nbsp;</td>
+      <td>&nbsp;</td>
+      <td width="80%" colspan="4">
+        <input type="submit" class="smallSubmit" name="submitButton" value="${uiLabelMap.CommonQuery}"/>
+      </td>
       </tr>
-    </#if>
-<td width="20%" align="right">
-&nbsp;</td>
-<td>&nbsp;</td>
-<td width="80%" colspan="4">
-<input type="submit" class="smallSubmit" name="submitButton" value="${uiLabelMap.CommonQuery}"/>
-</td>
-
-</tr>
-</table>
+    </table>
 </form>
 
 
@@ -107,8 +107,8 @@
       <#local indent = indent + "&nbsp;&nbsp;"/>
     </#list>
   </#if>
-<@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";>
-  <option value="${content.contentId?lower_case}">${indent}${content.description}</option>
-  <@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 />
-</@loopSubContent>
+  <@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";>
+    <option value="${content.contentId?lower_case}">${indent}${content.description}</option>
+    <@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 />
+  </@loopSubContent>
 </#macro>
Index: specialpurpose/ecommerce/template/content/ShowContentTree.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/ShowContentTree.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/ShowContentTree.ftl	(working copy)
@@ -23,22 +23,26 @@
 <@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId searchOn="true"/>
 
 <#if ancestorList?has_content && (0 < ancestorList?size) >
-    <#assign lastContent=ancestorList?last />
-    <h1>[${lastContent.contentId}] ${lastContent.description}
-              <a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${lastContent.contentId!}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
-    </h1>
+  <#assign lastContent=ancestorList?last />
+  <h1>[${lastContent.contentId}] ${lastContent.description}
+    <a class="tabButton"
+        href="<@ofbizUrl>searchContent?siteId=${lastContent.contentId!}</@ofbizUrl>">
+      ${uiLabelMap.CommonSearch}
+    </a>
+  </h1>
 </#if>
 
 <#assign viewIdx = "" />
 <#if requestParameters.viewIndex?has_content>
-<#assign viewIdx = requestParameters.viewIndex! />
+  <#assign viewIdx = requestParameters.viewIndex! />
 </#if>
 <#assign viewSz = "" />
 <#if requestParameters.viewSize?has_content>
-<#assign viewSz = requestParameters.viewSize! />
+  <#assign viewSz = requestParameters.viewSize! />
 </#if>
 <#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
-<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/>
+<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
+    .logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/>
 <#assign nodeTrail=[]/>
 <#assign firstContentId=""/>
 <#if nodeTrailCsv?has_content>
@@ -54,58 +58,75 @@
 -->
 
 <div>
-    <@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail />
+  <@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail />
 </div>
 
 <#macro renderCategoryBrowse contentId="" indentIndex=0 nodeTrail=[] viewSz=9999 viewIdx=0>
-    <!-- start of renderCategoryBrowse for contentId=${contentId} -->
+  <!-- start of renderCategoryBrowse for contentId=${contentId} -->
 
-        <#local contentIdx = contentId! />
-        <#if (!contentIdx?? || contentIdx?length == 0)>
-            <#local contentIdx = page.contentIdx! />
-            <#if (!contentIdx?? || contentIdx?length == 0)>
-            </#if>
-        </#if>
+  <#local contentIdx = contentId! />
+  <#if (!contentIdx?? || contentIdx?length == 0)>
+    <#local contentIdx = page.contentIdx! />
+    <#if (!contentIdx?? || contentIdx?length == 0)>
+    </#if>
+  </#if>
 
-        <#local thisContentId=nodeTrail[indentIndex]!/>
+  <#local thisContentId=nodeTrail[indentIndex]!/>
 
-        <#local thisNodeTrailCsv = "" />
-        <#local listUpper = (indentIndex - 1) />
-        <#if nodeTrail?size < listUpper >
-            <#local listUpper = (nodeTrail?size - 1)>
-        </#if>
-        <#list 0..listUpper as idx>
-            <#if thisNodeTrailCsv?has_content>
-                <#local thisNodeTrailCsv = thisNodeTrailCsv + ","/>
-            </#if>
-            <#if nodeTrail[idx]??>
-              <#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]>
-            </#if>
-        </#list>
+  <#local thisNodeTrailCsv = "" />
+  <#local listUpper = (indentIndex - 1) />
+  <#if nodeTrail?size < listUpper >
+    <#local listUpper = (nodeTrail?size - 1)>
+  </#if>
+  <#list 0..listUpper as idx>
+    <#if thisNodeTrailCsv?has_content>
+      <#local thisNodeTrailCsv = thisNodeTrailCsv + ","/>
+    </#if>
+    <#if nodeTrail[idx]??>
+      <#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]>
+    </#if>
+  </#list>
 
-        <!-- in showcontenttree, contentIdx: ${contentIdx} -->
+  <!-- in showcontenttree, contentIdx: ${contentIdx} -->
 
-        <!-- Look for content first -->
-        <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1">
-            <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/>
-            <#local thisCsv=thisNodeTrailCsv + "," + subContentId />
-            <a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">${uiLabelMap.CommonView}</a>  ${content.description!}<br />
-        </@loopSubContent>
+  <!-- Look for content first -->
+  <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz
+      contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1">
+    <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
+        .logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/>
+    <#local thisCsv=thisNodeTrailCsv + "," + subContentId />
+    <a class="tabButton"
+        href="<@ofbizUrl>viewcontent?contentId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
+      ${uiLabelMap.CommonView}
+    </a>  ${content.description!}
+    <br/>
+  </@loopSubContent>
 
 
-        <!-- Look for sub-topics -->
-        <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz returnAfterPickWhen="1==1" orderBy="contentName">
-            <#local plusMinus="+"/>
-            <#if thisContentId == subContentId>
-                <#local plusMinus="-"/>
-            </#if>
-            <#local thisCsv=thisNodeTrailCsv />
-            <#local thisCsv=thisNodeTrailCsv + "," + subContentId />
-            <a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>" >${plusMinus}</a> &nbsp;${content.description!}
-            <a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a> <br />
-            <#if thisContentId == subContentId>
-                <#assign catTrail = nodeTrail + [subContentId]/>
-                <div><@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1) nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx /></div>
-            </#if>
-        </@loopSubContent>
+  <!-- Look for sub-topics -->
+  <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz
+      returnAfterPickWhen="1==1" orderBy="contentName">
+    <#local plusMinus="+"/>
+    <#if thisContentId == subContentId>
+      <#local plusMinus="-"/>
+    </#if>
+    <#local thisCsv=thisNodeTrailCsv />
+    <#local thisCsv=thisNodeTrailCsv + "," + subContentId />
+    <a class="tabButton"
+        href="<@ofbizUrl>showcontenttree?contentId=${siteId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
+      ${plusMinus}
+    </a> &nbsp;${content.description!}
+    <a class="tabButton"
+        href="<@ofbizUrl>searchContent?siteId=${subContentId!}&nodeTrailCsv=${thisCsv}</@ofbizUrl>">
+      ${uiLabelMap.CommonSearch}
+    </a>
+    <br/>
+    <#if thisContentId == subContentId>
+      <#assign catTrail = nodeTrail + [subContentId]/>
+      <div>
+        <@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1)
+            nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx />
+      </div>
+    </#if>
+  </@loopSubContent>
 </#macro>
Index: specialpurpose/ecommerce/template/content/TplMbContent.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/TplMbContent.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/TplMbContent.ftl	(working copy)
@@ -20,14 +20,13 @@
 
 <#recurse doc>
 
-
 <#macro "ask:document">
   <#recurse .node>
 </#macro>
 
 <#macro "ask:title">
-<h2>${.node}</h2>
-<p/>
+  <h2>${.node}</h2>
+  <p/>
 </#macro>
 
 <#macro "ask:body">
@@ -48,18 +47,23 @@
 </#macro>
 
 <#macro @text>
-${.node?html}
+  ${.node?html}
 </#macro>
 <#--
 <#macro content>
-    <#assign contentId="ECMC" + .node.@id[0]/>
-    <DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/html"/>
-    <ElectronicText dataResourceId="${contentId}">
-<textData><![CDATA[
-${.node.content_text}
-]]></textData>
-    </ElectronicText>
-    <Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}" contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/xml" templateDataResourceId="TPL_XML_MB"/>
+  <#assign contentId="ECMC" + .node.@id[0]/>
+  <DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT"
+      dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/html"/>
+  <ElectronicText dataResourceId="${contentId}">
+    <textData>
+      <![CDATA[
+        ${.node.content_text}
+      ]]>
+    </textData>
+  </ElectronicText>
+  <Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}"
+      contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/xml"
+      templateDataResourceId="TPL_XML_MB"/>
 </#macro>
 -->
 
Index: specialpurpose/ecommerce/template/content/ViewContent.ftl
===================================================================
--- specialpurpose/ecommerce/template/content/ViewContent.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/content/ViewContent.ftl	(working copy)
@@ -18,119 +18,135 @@
 -->
 
 <div class="screenlet">
-<div style="margin:10px;">
-<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
-<#assign subContentId=requestParameters.contentId!/>
-<#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
-<#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> -->
-<#if ancestorList?has_content && (0 < ancestorList?size) >
+  <div style="margin:10px;">
+  <#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
+  <#assign subContentId=requestParameters.contentId!/>
+  <#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/>
+  <#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
+      .logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> -->
+  <#if ancestorList?has_content && (0 < ancestorList?size) >
     <#assign lastContent=ancestorList?last />
     <#assign firstContent=ancestorList[0] />
-</#if>
-<#if firstContent?has_content>
+  </#if>
+  <#if firstContent?has_content>
     <#assign siteId = firstContent.contentId/>
-</#if>
-<#if siteId?has_content>
+  </#if>
+  <#if siteId?has_content>
     <@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId/>
-</#if>
+  </#if>
 
-<#if lastContent?has_content>
+  <#if lastContent?has_content>
     <h1>[${lastContent.contentId}] ${lastContent.description!}</h1>
-</#if>
-<#--
-<#assign globalNodeTrail=[]/>
-<#assign firstContentId=""/>
-<#if nodeTrailCsv?has_content>
-  <#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") />
-  <#if 0 < globalNodeTrail?size>
-    <#assign firstContentId=globalNodeTrail[0]?string/>
   </#if>
-</#if>
-<#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/>
--->
-<#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) >
+  <#--
+  <#assign globalNodeTrail=[]/>
+  <#assign firstContentId=""/>
+  <#if nodeTrailCsv?has_content>
+    <#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") />
+    <#if 0 < globalNodeTrail?size>
+      <#assign firstContentId=globalNodeTrail[0]?string/>
+    </#if>
+  </#if>
+  <#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/>
+  -->
+  <#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) >
     <#assign lastNode = globalNodeTrail?last/>
     <#if lastNode?has_content>
       <#assign subContent=lastNode.value/>
     </#if>
-<#else>
-    <#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
-</#if>
-<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, subContent:" + subContent, "")/>
-<br />
-<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:</h1><br />
-<table border="0" class="blogtext">
-    <tr>
-    <td width="40">&nbsp;</td>
-    <td>
-        <@renderSubContentCache subContentId=subContentId />
-    </td>
-    <td width="40" valign="bottom">
-<#--
-<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" >
-</@wrapSubContentCache >
-<@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" >
-    <a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${requestParameters.contentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >Respond</a>
-</@checkPermission>
--->
-<br />
-
-    </td>
-    </tr>
-    <#assign thisContentId = subContentId/>
-    <@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT">
-      <#assign thisNodeTrailCsv = nodeTrailCsv />
+  <#else>
+    <#assign subContent = delegator.findOne("Content",
+        Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
+  </#if>
+  <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"]
+      .logInfo("in viewcontent, subContent:" + subContent, "")/>
+    <br/>
+    <h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!}
+      - ${subContent.description!}:</h1><br/>
+    <table border="0" class="blogtext">
       <tr>
-        <td colspan="3" align="right">
-          <a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${subContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}</@ofbizUrl>" >${content.contentName!}</a>
+        <td width="40">&nbsp;</td>
+        <td>
+          <@renderSubContentCache subContentId=subContentId />
         </td>
+        <td width="40" valign="bottom">
+        <#--
+        <@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" >
+        </@wrapSubContentCache >
+        <@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" >
+          <a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${requestParameters.contentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >Respond</a>
+        </@checkPermission>
+        -->
+          <br/>
+        </td>
       </tr>
-    </@loopSubContent>
-</table>
-<hr />
-<#--
-<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
-            ${permissionErrorMsg!}
-</@checkPermission>
--->
+      <#assign thisContentId = subContentId/>
+      <@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT">
+        <#assign thisNodeTrailCsv = nodeTrailCsv />
+        <tr>
+          <td colspan="3" align="right">
+            <a class="tabButton"
+               href="<@ofbizUrl>viewcontent?contentId=${subContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}</@ofbizUrl>">${content.contentName!}</a>
+          </td>
+        </tr>
+      </@loopSubContent>
+    </table>
+    <hr/>
+  <#--
+  <@checkPermission mode="not-equals" subContentId=subContentId
+      targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
+    ${permissionErrorMsg!}
+  </@checkPermission>
+  -->
 
+  </div>
 </div>
-</div>
 
 
 <#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" >
-    <#local indent = "">
-    <#local csv = "">
-    <#local counter = 0>
-    <#local len = trail?size>
-    <table border="0" cellspacing="4">
+  <#local indent = "">
+  <#local csv = "">
+  <#local counter = 0>
+  <#local len = trail?size>
+  <table border="0" cellspacing="4">
     <#list trail as content>
       <#if counter < (len - endIndexOffset) && startIndex <= counter >
         <#if 0 < counter >
-            <#local csv = csv + ","/>
+          <#local csv = csv + ","/>
         </#if>
         <#local csv = csv + content.contentId/>
         <#if counter < len && startIndex <= counter >
-       <tr>
-         <td>
+        <tr>
+          <td>
             ${indent}
             <#if content.contentTypeId == "WEB_SITE_PUB_PT" >
-              <a class="tabButton" href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>showcontenttree?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonBackTo}
+              </a>
+              &nbsp;${content.contentName!}
             <#else>
-              <a class="tabButton" href="<@ofbizUrl>viewcontent?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>viewcontent?contentId=${content.contentId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonBackTo}
+              </a>
+              &nbsp;${content.contentName!}
             </#if>
             <#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
             [${content.contentId!}]
             <#if searchOn?has_content && searchOn?lower_case == "true">
-                &nbsp;
-              <a class="tabButton" href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonSearch}</a>
+              &nbsp;
+              <a class="tabButton"
+                 href="<@ofbizUrl>searchContent?siteId=${siteId!}&nodeTrailCsv=${csv}</@ofbizUrl>">
+                ${uiLabelMap.CommonSearch}
+              </a>
             </#if>
-        </#if>
-         </td>
-       </tr>
+          </#if>
+        </td>
+      </tr>
       </#if>
       <#local counter = counter + 1>
-    <#if 20 < counter > <#break/></#if>
+      <#if 20 < counter > <#break/></#if>
     </#list>
-    </table>
+  </table>
 </#macro>
Index: specialpurpose/ecommerce/template/customer/AnonContactus.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/AnonContactus.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/AnonContactus.ftl	(working copy)
@@ -18,63 +18,83 @@
 -->
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <h3>${uiLabelMap.CommonContactUs}</h3>
-    </div>
-    <script type="text/javascript" language="JavaScript">
+  <div class="screenlet-title-bar">
+    <h3>${uiLabelMap.CommonContactUs}</h3>
+  </div>
+  <script type="text/javascript" language="JavaScript">
     <!--
-        function reloadCaptcha(fieldName) {
-            var captchaUri = "<@ofbizUrl>captcha.jpg?captchaCodeId=" + fieldName + "&amp;unique=_PLACEHOLDER_</@ofbizUrl>";
-            var unique = Date.now();
-            captchaUri = captchaUri.replace("_PLACEHOLDER_", unique);
-            document.getElementById(fieldName).src = captchaUri;
-        }
+    function reloadCaptcha(fieldName) {
+      var captchaUri = "<@ofbizUrl>captcha.jpg?captchaCodeId=" + fieldName + "&amp;unique=_PLACEHOLDER_</@ofbizUrl>";
+      var unique = Date.now();
+      captchaUri = captchaUri.replace("_PLACEHOLDER_", unique);
+      document.getElementById(fieldName).src = captchaUri;
+    }
     //-->
-    </script>
-    <div class="screenlet-body">
-        <form id="contactForm" method="post" action="<@ofbizUrl>submitAnonContact</@ofbizUrl>">
-            <input type="hidden" name="partyIdFrom" value="${(userLogin.partyId)!}" />
-            <input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
-            <input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS" />
-            <input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI" />
-            <input type="hidden" name="productStoreId" value="${productStore.productStoreId}" />
-            <input type="hidden" name="emailType" value="CONT_NOTI_EMAIL" />
-            <table class="basic-table" cellspacing="0">
-                <tbody>
-                    <tr>
-                       <td class="label">${uiLabelMap.EcommerceSubject}</td>
-                       <td><input type="text" name="subject" id="subject" class="required" value="${requestParameters.subject!}"/>*</td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.CommonMessage}</td>
-                       <td><textarea name="content" id="message" class="required" cols="50" rows="5">${requestParameters.content!}</textarea>*</td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.FormFieldTitle_emailAddress}</td>
-                       <td><input type="text" name="emailAddress" id="emailAddress" class="required" value="${requestParameters.emailAddress!}"/>*</td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.PartyFirstName}</td>
-                       <td><input type="text" name="firstName" id="firstName" class="required" value="${requestParameters.firstName!}"/></td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.PartyLastName}</td>
-                       <td><input type="text" name="lastName" id="lastName" class="required" value="${requestParameters.lastName!}"/></td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.CommonCaptchaCode}</td>
-                       <td><div><img id="captchaImage" src="<@ofbizUrl>captcha.jpg?captchaCodeId=captchaImage&amp;unique=${nowTimestamp.getTime()}</@ofbizUrl>" alt="" /></div><a href="javascript:reloadCaptcha('captchaImage');">${uiLabelMap.CommonReloadCaptchaCode}</a></td>
-                    </tr>
-                    <tr>
-                       <td class="label">${uiLabelMap.CommonVerifyCaptchaCode}</td>
-                       <td><input type="text" autocomplete="off" maxlength="30" size="23" name="captcha"/>*</td>
-                    </tr>
-                    <tr>
-                       <td class="label"></td>
-                       <td><input type="submit" value="${uiLabelMap.CommonSubmit}" /></td>
-                    </tr>
-                </tbody>
-            </table>
-        </form>
-    </div>
+  </script>
+  <div class="screenlet-body">
+    <form id="contactForm" method="post" action="<@ofbizUrl>submitAnonContact</@ofbizUrl>">
+      <input type="hidden" name="partyIdFrom" value="${(userLogin.partyId)!}"/>
+      <input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
+      <input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
+      <input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
+      <input type="hidden" name="productStoreId" value="${productStore.productStoreId}"/>
+      <input type="hidden" name="emailType" value="CONT_NOTI_EMAIL"/>
+      <table class="basic-table" cellspacing="0">
+        <tbody>
+        <tr>
+          <td class="label">${uiLabelMap.EcommerceSubject}</td>
+          <td>
+            <input type="text" name="subject" id="subject" class="required" value="${requestParameters.subject!}"/>*
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.CommonMessage}</td>
+          <td>
+            <textarea name="content" id="message" class="required" cols="50" rows="5">
+              ${requestParameters.content!}
+            </textarea>*
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.FormFieldTitle_emailAddress}</td>
+          <td>
+            <input type="text" name="emailAddress" id="emailAddress" class="required"
+                value="${requestParameters.emailAddress!}"/>*
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.PartyFirstName}</td>
+          <td>
+            <input type="text" name="firstName" id="firstName" class="required" value="${requestParameters.firstName!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.PartyLastName}</td>
+          <td>
+            <input type="text" name="lastName" id="lastName" class="required" value="${requestParameters.lastName!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.CommonCaptchaCode}</td>
+          <td>
+            <div>
+              <img id="captchaImage"
+                  src="<@ofbizUrl>captcha.jpg?captchaCodeId=captchaImage&amp;unique=${nowTimestamp.getTime()}</@ofbizUrl>"
+                  alt=""/>
+            </div>
+            <a href="javascript:reloadCaptcha('captchaImage');">${uiLabelMap.CommonReloadCaptchaCode}</a>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.CommonVerifyCaptchaCode}</td>
+          <td><input type="text" autocomplete="off" maxlength="30" size="23" name="captcha"/>*</td>
+        </tr>
+        <tr>
+          <td class="label"></td>
+          <td><input type="submit" value="${uiLabelMap.CommonSubmit}"/></td>
+        </tr>
+        </tbody>
+      </table>
+    </form>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/ChangePassword.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/ChangePassword.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/ChangePassword.ftl	(working copy)
@@ -19,9 +19,11 @@
 <div class="screenlet">
   <div class="screenlet-title-bar">
     <h3>${uiLabelMap.PartyChangePassword}</h3>
-  </div>
-  &nbsp;<a id="CommonGoBack1" href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-  &nbsp;<a id="CommonSave1" href="javascript:document.getElementById('changepasswordform').submit()" class="button">${uiLabelMap.CommonSave}</a>
+  </div>&nbsp;
+  <a id="CommonGoBack1" href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+  <a id="CommonSave1" href="javascript:document.getElementById('changepasswordform').submit()" class="button">
+    ${uiLabelMap.CommonSave}
+  </a>
   <p/>   
   <div class="screenlet-body">
     <form id="changepasswordform" method="post" action="<@ofbizUrl>updatePassword/${donePage}</@ofbizUrl>">
@@ -40,12 +42,15 @@
         </div>
         <div>
           <label for="passwordHint">${uiLabelMap.PartyPasswordHint}</label>
-          <input type="text" class='inputBox' maxlength="100" name="passwordHint" id="passwordHint" value="${userLoginData.passwordHint!}" />
+          <input type="text" class='inputBox' maxlength="100" name="passwordHint"
+              id="passwordHint" value="${userLoginData.passwordHint!}" />
         </div>
         <label>${uiLabelMap.CommonFieldsMarkedAreRequired}</label>
       </fieldset>
     </form>
     <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">[${uiLabelMap.CommonGoBack}]</a>
-    <a href="javascript:document.getElementById('changepasswordform').submit()" class="button">[${uiLabelMap.CommonSave}]</a>
+    <a href="javascript:document.getElementById('changepasswordform').submit()" class="button">
+      [${uiLabelMap.CommonSave}]
+    </a>
   </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/CustomerSurvey.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/CustomerSurvey.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/CustomerSurvey.ftl	(working copy)
@@ -18,17 +18,18 @@
 -->
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="h3">${survey.surveyName}</div>
-    </div>
-    <div class="screenlet-body">
-        <#-- Render the survey -->
-        <#if surveyWrapper?has_content>
-            <form method="post" enctype="multipart/form-data" action="<@ofbizUrl>profilesurvey/profilesurvey</@ofbizUrl>" style="margin: 0;">
-              ${surveyWrapper.render()}
-            </form>
-        <#else>
-            <h1>${uiLabelMap.OrderNothingToDoHere}</h1>
-        </#if>
-    </div>
+  <div class="screenlet-title-bar">
+    <div class="h3">${survey.surveyName}</div>
+  </div>
+  <div class="screenlet-body">
+  <#-- Render the survey -->
+  <#if surveyWrapper?has_content>
+    <form method="post" enctype="multipart/form-data" action="<@ofbizUrl>profilesurvey/profilesurvey</@ofbizUrl>"
+        style="margin: 0;">
+      ${surveyWrapper.render()}
+    </form>
+  <#else>
+    <h1>${uiLabelMap.OrderNothingToDoHere}</h1>
+  </#if>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/DigitalProductEdit.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/DigitalProductEdit.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/DigitalProductEdit.ftl	(working copy)
@@ -20,76 +20,98 @@
 <#assign productPrice = productPriceList[0]!/>
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="h3">${uiLabelMap.PageTitleDigitalProductEdit}</div>
-    </div>
-    <div class="screenlet-body">
-<#if !supplierProduct?has_content && parameters.productId?has_content>
-  <div><h3>${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}</h3></div>
-<#else>
-
+  <div class="screenlet-title-bar">
+    <div class="h3">${uiLabelMap.PageTitleDigitalProductEdit}</div>
+  </div>
+  <div class="screenlet-body">
+  <#if !supplierProduct?has_content && parameters.productId?has_content>
+    <div><h3>${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}</h3></div>
+  <#else>
     <#if !supplierProduct??>
       <h1>${uiLabelMap.EcommerceAddNewDigitalProduct}</h1>
-      <form method="post" action="<@ofbizUrl>createCustomerDigitalDownloadProduct</@ofbizUrl>" name="editdigitaluploadform" style="margin: 0;">
-        <input type="hidden" name="productStoreId" value="${productStore.productStoreId}" />
+    <form method="post" action="<@ofbizUrl>createCustomerDigitalDownloadProduct</@ofbizUrl>"
+        name="editdigitaluploadform" style="margin: 0;">
+      <input type="hidden" name="productStoreId" value="${productStore.productStoreId}"/>
     <#else>
       <h1>${uiLabelMap.EcommerceUpdateDigitalProduct}</h1>
-      <form method="post" action="<@ofbizUrl>updateCustomerDigitalDownloadProduct</@ofbizUrl>" name="editdigitaluploadform" style="margin: 0;">
-        <input type="hidden" name="productId" value="${parameters.productId}" />
-        <input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}" />
-        <input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}" />
-        <input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}" />
-    </#if>
-    &nbsp;<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
-
-    <table width="90%" border="0" cellpadding="2" cellspacing="0">
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductProductName}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="productName" value="${(product.productName)!}"/>*</td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductProductDescription}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${(product.description)!}"/></td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.ProductPrice}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="price" value="${(productPrice.price)!}"/>*</td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>&nbsp;</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%"><a href="javascript:document.editdigitaluploadform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a></td>
-    </tr>
-  </table>
-  </form>
-</#if>
-    </div>
+      <form method="post" action="<@ofbizUrl>updateCustomerDigitalDownloadProduct</@ofbizUrl>"
+          name="editdigitaluploadform" style="margin: 0;">
+        <input type="hidden" name="productId" value="${parameters.productId}"/>
+        <input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}"/>
+        <input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}"/>
+        <input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}"/>
+    </#if>&nbsp;
+      <a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
+      <table width="90%" border="0" cellpadding="2" cellspacing="0">
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.ProductProductName}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <input type="text" class="inputBox" size="30" maxlength="60"
+                name="productName" value="${(product.productName)!}"/>*
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.ProductProductDescription}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <input type="text" class="inputBox" size="30" maxlength="60"
+                name="description" value="${(product.description)!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.ProductPrice}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <input type="text" class="inputBox" size="30" maxlength="60" name="price" value="${(productPrice.price)!}"/>*
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>&nbsp;</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <a href="javascript:document.editdigitaluploadform.submit()"
+                class="buttontext">${uiLabelMap.CommonSave}</a>
+          </td>
+        </tr>
+      </table>
+    </form>
+  </#if>
+  </div>
 </div>
 
 <#if supplierProduct?has_content>
-<div class="screenlet">
+  <div class="screenlet">
     <div class="screenlet-title-bar">
-        <div class="h3">${uiLabelMap.OrderDigitalProductFiles}</div>
+      <div class="h3">${uiLabelMap.OrderDigitalProductFiles}</div>
     </div>
     <div class="screenlet-body">
-        <#list productContentAndInfoList as productContentAndInfo>
-            <div>
-              ${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate})
-              <a href="<@ofbizUrl>removeCustomerDigitalDownloadProductFile?contentId=${productContentAndInfo.contentId}&amp;productContentTypeId=${productContentAndInfo.productContentTypeId}&amp;fromDate=${productContentAndInfo.fromDate}&amp;productId=${parameters.productId}&amp;currencyUomId=${parameters.currencyUomId}&amp;minimumOrderQuantity=${parameters.minimumOrderQuantity}&amp;availableFromDate=${parameters.availableFromDate}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a>
-            </div>
-        </#list>
-
-        <div><hr /></div>
-        <div class="tableheadtext">${uiLabelMap.EcommerceDigitalAddFromMyFiles}</div>
+      <#list productContentAndInfoList as productContentAndInfo>
         <div>
-        <form method="post" action="<@ofbizUrl>addCustomerDigitalDownloadProductFile</@ofbizUrl>" name="adddigitaluploadfile" style="margin: 0;">
-          <input type="hidden" name="productId" value="${parameters.productId}" />
-          <input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}" />
-          <input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}" />
-          <input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}" />
+          ${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate})
+          <a href="<@ofbizUrl>removeCustomerDigitalDownloadProductFile?contentId=${productContentAndInfo.contentId}&amp;productContentTypeId=${productContentAndInfo.productContentTypeId}&amp;fromDate=${productContentAndInfo.fromDate}&amp;productId=${parameters.productId}&amp;currencyUomId=${parameters.currencyUomId}&amp;minimumOrderQuantity=${parameters.minimumOrderQuantity}&amp;availableFromDate=${parameters.availableFromDate}</@ofbizUrl>"
+              class="buttontext">${uiLabelMap.CommonRemove}</a>
+        </div>
+      </#list>
+      <div>
+        <hr/>
+      </div>
+      <div class="tableheadtext">${uiLabelMap.EcommerceDigitalAddFromMyFiles}</div>
+      <div>
+        <form method="post" action="<@ofbizUrl>addCustomerDigitalDownloadProductFile</@ofbizUrl>"
+            name="adddigitaluploadfile" style="margin: 0;">
+          <input type="hidden" name="productId" value="${parameters.productId}"/>
+          <input type="hidden" name="currencyUomId" value="${parameters.currencyUomId}"/>
+          <input type="hidden" name="minimumOrderQuantity" value="${parameters.minimumOrderQuantity}"/>
+          <input type="hidden" name="availableFromDate" value="${parameters.availableFromDate}"/>
           <select name="contentId" class="selectBox">
             <#list ownerContentAndRoleList as ownerContentAndRole>
               <option value="${ownerContentAndRole.contentId}">${ownerContentAndRole.contentName}</option>
@@ -97,8 +119,8 @@
           </select>
           <a href="javascript:document.adddigitaluploadfile.submit()" class="buttontext">${uiLabelMap.CommonAdd}</a>
         </form>
-        </div>
-    &nbsp;<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
+      </div>&nbsp;
+      <a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBackToList}</a>
     </div>
-</div>
+  </div>
 </#if>
Index: specialpurpose/ecommerce/template/customer/DigitalProductList.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/DigitalProductList.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/DigitalProductList.ftl	(working copy)
@@ -18,52 +18,67 @@
 -->
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="h3">${uiLabelMap.PageTitleDigitalProductList}</div>
+  <div class="screenlet-title-bar">
+    <div class="h3">${uiLabelMap.PageTitleDigitalProductList}</div>
+  </div>
+  <div class="screenlet-body">
+    <div>&nbsp;
+      <a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">
+        ${uiLabelMap.EcommerceDigitalNewProduct}
+      </a>
     </div>
-    <div class="screenlet-body">
-       <div>&nbsp;<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceDigitalNewProduct}</a></div>
-        <table width="100%" cellpadding="1" cellspacing="0" border="0">
-          <tr>
-            <td width="30%">
-              <div><b>${uiLabelMap.ProductProductName}</b></div>
-            </td>
-            <td width="5">&nbsp;</td>
-            <td width="45%">
-              <div><b>${uiLabelMap.CommonDescription}</b></div>
-            </td>
-            <td width="5">&nbsp;</td>
-            <td width="20%">&nbsp;</td>
-          </tr>
-          <#list supplierProductList as supplierProduct>
-            <#assign product = supplierProduct.getRelatedOne("Product", true)/>
-            <tr><td colspan="5"><hr /></td></tr>
-            <tr>
-              <td>
-                <div>${(product.productName)!}</div>
-              </td>
-              <td width="5">&nbsp;</td>
-              <td>
-                <div>${(product.description)!}</div>
-              </td>
-              <td width="5">&nbsp;</td>
-              <td align="right">
-                <a href="<@ofbizUrl>digitalproductedit?productId=${supplierProduct.productId}&amp;currencyUomId=${supplierProduct.currencyUomId}&amp;minimumOrderQuantity=${supplierProduct.minimumOrderQuantity}&amp;availableFromDate=${supplierProduct.availableFromDate}</@ofbizUrl>" class="buttontext">Edit</a>
-              </td>
-            </tr>
-          </#list>
-          <#if !supplierProductList?has_content>
-            <tr><td colspan="5"><h3>${uiLabelMap.EcommerceNoDigitalProductsFound}</h3></td></tr>
-          </#if>
-        </table>
-    </div>
+    <table width="100%" cellpadding="1" cellspacing="0" border="0">
+      <tr>
+        <td width="30%">
+          <div><b>${uiLabelMap.ProductProductName}</b></div>
+        </td>
+        <td width="5">&nbsp;</td>
+        <td width="45%">
+          <div><b>${uiLabelMap.CommonDescription}</b></div>
+        </td>
+        <td width="5">&nbsp;</td>
+        <td width="20%">&nbsp;</td>
+      </tr>
+    <#list supplierProductList as supplierProduct>
+      <#assign product = supplierProduct.getRelatedOne("Product", true)/>
+      <tr>
+        <td colspan="5">
+          <hr/>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <div>${(product.productName)!}</div>
+        </td>
+        <td width="5">&nbsp;</td>
+        <td>
+          <div>${(product.description)!}</div>
+        </td>
+        <td width="5">&nbsp;</td>
+        <td align="right">
+          <a href="<@ofbizUrl>digitalproductedit?productId=${supplierProduct.productId}&amp;currencyUomId=${supplierProduct.currencyUomId}&amp;minimumOrderQuantity=${supplierProduct.minimumOrderQuantity}&amp;availableFromDate=${supplierProduct.availableFromDate}</@ofbizUrl>"
+              class="buttontext">Edit</a>
+        </td>
+      </tr>
+    </#list>
+    <#if !supplierProductList?has_content>
+      <tr>
+        <td colspan="5"><h3>${uiLabelMap.EcommerceNoDigitalProductsFound}</h3></td>
+      </tr>
+    </#if>
+    </table>
+  </div>
 </div>
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="h3">${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}</div>
+  <div class="screenlet-title-bar">
+    <div class="h3">${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}</div>
+  </div>
+  <div class="screenlet-body">
+    <div>&nbsp;
+      <a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">
+        ${uiLabelMap.EcommerceDigitalNewProduct}
+      </a>
     </div>
-    <div class="screenlet-body">
-       <div>&nbsp;<a href="<@ofbizUrl>digitalproductedit</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceDigitalNewProduct}</a></div>
-    </div>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/EditContactMech.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/EditContactMech.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/EditContactMech.ftl	(working copy)
@@ -17,27 +17,30 @@
 under the License.
 -->
 <#if canNotView>
-  <h3>${uiLabelMap.PartyContactInfoNotBelongToYou}.</h3>
-  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonBack}</a>
+<h3>${uiLabelMap.PartyContactInfoNotBelongToYou}.</h3>
+<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonBack}</a>
 <#else>
   <#if !contactMech??>
-    <#-- When creating a new contact mech, first select the type, then actually create -->
+  <#-- When creating a new contact mech, first select the type, then actually create -->
     <#if !requestParameters.preContactMechTypeId?? && !preContactMechTypeId??>
     <h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
     <form method="post" action='<@ofbizUrl>editcontactmechnosave</@ofbizUrl>' name="createcontactmechform">
       <div>
-      <table width="90%" border="0" cellpadding="2" cellspacing="0">
-        <tr>
-          <td>${uiLabelMap.PartySelectContactType}:</td>
-          <td>
-            <select name="preContactMechTypeId" class='selectBox'>
-              <#list contactMechTypes as contactMechType>
-                <option value='${contactMechType.contactMechTypeId}'>${contactMechType.get("description",locale)}</option>
-              </#list>
-            </select>&nbsp;<a href="javascript:document.createcontactmechform.submit()" class="button">${uiLabelMap.CommonCreate}</a>
-          </td>
-        </tr>
-      </table>
+        <table width="90%" border="0" cellpadding="2" cellspacing="0">
+          <tr>
+            <td>${uiLabelMap.PartySelectContactType}:</td>
+            <td>
+              <select name="preContactMechTypeId" class='selectBox'>
+                <#list contactMechTypes as contactMechType>
+                  <option value='${contactMechType.contactMechTypeId}'>
+                    ${contactMechType.get("description",locale)}
+                  </option>
+                </#list>
+              </select>&nbsp;
+              <a href="javascript:document.createcontactmechform.submit()" class="button">${uiLabelMap.CommonCreate}</a>
+            </td>
+          </tr>
+        </table>
       </div>
     </form>
     <#-- <p><h3>ERROR: Contact information with ID "${contactMechId}" not found!</h3></p> -->
@@ -46,80 +49,95 @@
 
   <#if contactMechTypeId??>
     <#if !contactMech??>
-      <h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
-      <a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
-      <a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
-      <table width="90%" border="0" cellpadding="2" cellspacing="0">
-        <form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
-        <div>
-          <input type='hidden' name='contactMechTypeId' value='${contactMechTypeId}' />
-          <#if contactMechPurposeType??>
-            <div>(${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")</div>
-          </#if>
-          <#if cmNewPurposeTypeId?has_content><input type='hidden' name='contactMechPurposeTypeId' value='${cmNewPurposeTypeId}' /></#if>
-          <#if preContactMechTypeId?has_content><input type='hidden' name='preContactMechTypeId' value='${preContactMechTypeId}' /></#if>
-          <#if paymentMethodId?has_content><input type='hidden' name='paymentMethodId' value='${paymentMethodId}' /></#if>
+    <h2>${uiLabelMap.PartyCreateNewContactInfo}</h2>
+    <a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
+    <a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
+    <table width="90%" border="0" cellpadding="2" cellspacing="0">
+    <form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
+    <div>
+      <input type='hidden' name='contactMechTypeId' value='${contactMechTypeId}'/>
+      <#if contactMechPurposeType??>
+        <div>(${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")</div>
+      </#if>
+      <#if cmNewPurposeTypeId?has_content>
+        <input type='hidden' name='contactMechPurposeTypeId' value='${cmNewPurposeTypeId}'/>
+      </#if>
+      <#if preContactMechTypeId?has_content>
+        <input type='hidden' name='preContactMechTypeId' value='${preContactMechTypeId}'/>
+      </#if>
+      <#if paymentMethodId?has_content>
+        <input type='hidden' name='paymentMethodId' value='${paymentMethodId}'/>
+      </#if>
     <#else>
-      <h2>${uiLabelMap.PartyEditContactInfo}</h2>      
+      <h2>${uiLabelMap.PartyEditContactInfo}</h2>
       <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
       <a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
-      <table width="90%" border="0" cellpadding="2" cellspacing="0">
-        <tr>
-          <td align="right" valign="top">${uiLabelMap.PartyContactPurposes}</td>
-          <td>&nbsp;</td>
-          <td>
-            <table border="0" cellspacing="1">
-              <#list partyContactMechPurposes! as partyContactMechPurpose>
-                <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
-                <tr>
-                  <td>
-                    <#if contactMechPurposeType??>
-                      ${contactMechPurposeType.get("description",locale)}
-                    <#else>
-                      ${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"
-                    </#if>
-                     (${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()})
-                    <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires}:${partyContactMechPurpose.thruDate.toString()})</#if>
-                  </td>
-                  <td>
-                      <form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}" method="post" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>">
-                        <div>
-                          <input type="hidden" name="contactMechId" value="${contactMechId}"/>
-                          <input type="hidden" name="contactMechPurposeTypeId" value="${partyContactMechPurpose.contactMechPurposeTypeId}"/>
-                          <input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate}"/>
-                          <input type="hidden" name="useValues" value="true"/>
-                          <a href='javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()' class='button'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a>
-                        </div>
-                      </form> 
-                  </td>
-                </tr>
-              </#list>
-              <#if purposeTypes?has_content>
+    <table width="90%" border="0" cellpadding="2" cellspacing="0">
+      <tr>
+        <td align="right" valign="top">${uiLabelMap.PartyContactPurposes}</td>
+        <td>&nbsp;</td>
+        <td>
+          <table border="0" cellspacing="1">
+            <#list partyContactMechPurposes! as partyContactMechPurpose>
+              <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
               <tr>
                 <td>
-                  <form method="post" action='<@ofbizUrl>createPartyContactMechPurpose</@ofbizUrl>' name='newpurposeform'>
+                  <#if contactMechPurposeType??>
+                  ${contactMechPurposeType.get("description",locale)}
+                  <#else>
+                  ${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"
+                  </#if>
+                  (${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()})
+                  <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires}
+                    :${partyContactMechPurpose.thruDate.toString()})</#if>
+                </td>
+                <td>
+                  <form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}"
+                        method="post" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>">
                     <div>
-                    <input type="hidden" name="contactMechId" value="${contactMechId}"/>
-                    <input type="hidden" name="useValues" value="true"/>
+                      <input type="hidden" name="contactMechId" value="${contactMechId}"/>
+                      <input type="hidden" name="contactMechPurposeTypeId"
+                             value="${partyContactMechPurpose.contactMechPurposeTypeId}"/>
+                      <input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate}"/>
+                      <input type="hidden" name="useValues" value="true"/>
+                      <a href='javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()'
+                         class='button'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a>
+                    </div>
+                  </form>
+                </td>
+              </tr>
+            </#list>
+            <#if purposeTypes?has_content>
+              <tr>
+                <td>
+                  <form method="post" action='<@ofbizUrl>createPartyContactMechPurpose</@ofbizUrl>'
+                        name='newpurposeform'>
+                    <div>
+                      <input type="hidden" name="contactMechId" value="${contactMechId}"/>
+                      <input type="hidden" name="useValues" value="true"/>
                       <select name='contactMechPurposeTypeId' class='selectBox'>
                         <option></option>
                         <#list purposeTypes as contactMechPurposeType>
-                          <option value='${contactMechPurposeType.contactMechPurposeTypeId}'>${contactMechPurposeType.get("description",locale)}</option>
+                          <option value='${contactMechPurposeType.contactMechPurposeTypeId}'>
+                            ${contactMechPurposeType.get("description",locale)}
+                          </option>
                         </#list>
                       </select>
-                      </div>
+                    </div>
                   </form>
                 </td>
-                <td><a href='javascript:document.newpurposeform.submit()' class='button'>${uiLabelMap.PartyAddPurpose}</a></td>
+                <td>
+                  <a href='javascript:document.newpurposeform.submit()' class='button'>${uiLabelMap.PartyAddPurpose}</a>
+                </td>
               </tr>
-              </#if>
-            </table>
-          </td>
-        </tr>
-        <form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
-          <div>
-          <input type="hidden" name="contactMechId" value='${contactMechId}' />
-          <input type="hidden" name="contactMechTypeId" value='${contactMechTypeId}' />
+            </#if>
+          </table>
+        </td>
+      </tr>
+    <form method="post" action='<@ofbizUrl>${reqName}</@ofbizUrl>' name="editcontactmechform" id="editcontactmechform">
+    <div>
+      <input type="hidden" name="contactMechId" value='${contactMechId}'/>
+      <input type="hidden" name="contactMechTypeId" value='${contactMechTypeId}'/>
     </#if>
 
     <#if contactMechTypeId = "POSTAL_ADDRESS">
@@ -127,7 +145,8 @@
         <td align="right" valign="top">${uiLabelMap.PartyToName}</td>
         <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="30" maxlength="60" name="toName" value="${postalAddressData.toName!}" />
+          <input type="text" class='inputBox' size="30" maxlength="60" name="toName"
+              value="${postalAddressData.toName!}"/>
         </td>
       </tr>
       <tr>
@@ -134,7 +153,8 @@
         <td align="right" valign="top">${uiLabelMap.PartyAttentionName}</td>
         <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="30" maxlength="60" name="attnName" value="${postalAddressData.attnName!}" />
+          <input type="text" class='inputBox' size="30" maxlength="60" name="attnName"
+              value="${postalAddressData.attnName!}"/>
         </td>
       </tr>
       <tr>
@@ -141,14 +161,16 @@
         <td align="right" valign="top">${uiLabelMap.PartyAddressLine1}</td>
         <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="30" maxlength="30" name="address1" value="${postalAddressData.address1!}" />
-        *</td>
+          <input type="text" class='inputBox' size="30" maxlength="30" name="address1"
+              value="${postalAddressData.address1!}"/>*
+        </td>
       </tr>
       <tr>
         <td align="right" valign="top">${uiLabelMap.PartyAddressLine2}</td>
         <td>&nbsp;</td>
         <td>
-            <input type="text" class='inputBox' size="30" maxlength="30" name="address2" value="${postalAddressData.address2!}" />
+          <input type="text" class='inputBox' size="30" maxlength="30" name="address2"
+              value="${postalAddressData.address2!}"/>
         </td>
       </tr>
       <tr>
@@ -155,39 +177,42 @@
         <td align="right" valign="top">${uiLabelMap.PartyCity}</td>
         <td>&nbsp;</td>
         <td>
-            <input type="text" class='inputBox' size="30" maxlength="30" name="city" value="${postalAddressData.city!}" />
-        *</td>
+          <input type="text" class='inputBox' size="30" maxlength="30" name="city" value="${postalAddressData.city!}"/>*
+        </td>
       </tr>
       <tr>
         <td align="right" valign="top"> ${uiLabelMap.PartyState}
         <td>&nbsp;</td>
-        <td>       
+        <td>
           <select name="stateProvinceGeoId" id="editcontactmechform_stateProvinceGeoId">
           </select>
         </td>
-      </tr>      
+      </tr>
       <tr>
         <td align="right" valign="top">${uiLabelMap.PartyZipCode}</td>
-        <td >&nbsp;</td>
+        <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="12" maxlength="10" name="postalCode" value="${postalAddressData.postalCode!}" />
-        *</td>
+          <input type="text" class='inputBox' size="12" maxlength="10" name="postalCode"
+                 value="${postalAddressData.postalCode!}"/>*
+        </td>
       </tr>
-      <tr>   
+      <tr>
         <td align="right" valign="top">${uiLabelMap.CommonCountry}</td>
         <td>&nbsp;</td>
         <td>
           <select name="countryGeoId" id="editcontactmechform_countryGeoId">
-          ${screens.render("component://common/widget/CommonScreens.xml#countries")}        
-          <#if (postalAddress??) && (postalAddress.countryGeoId??)>
-            <#assign defaultCountryGeoId = postalAddress.countryGeoId>
-          <#else>
-            <#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "country.geo.id.default", delegator)>
-          </#if>
-          <option selected="selected" value="${defaultCountryGeoId}">
-          <#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId",defaultCountryGeoId), false)>
-            ${countryGeo.get("geoName",locale)}
-          </option>
+            ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+            <#if (postalAddress??) && (postalAddress.countryGeoId??)>
+              <#assign defaultCountryGeoId = postalAddress.countryGeoId>
+            <#else>
+              <#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"]
+                  .getPropertyValue("general", "country.geo.id.default", delegator)>
+            </#if>
+            <option selected="selected" value="${defaultCountryGeoId}">
+              <#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"]
+                  .toMap("geoId",defaultCountryGeoId), false)>
+              ${countryGeo.get("geoName",locale)}
+            </option>
           </select>
         </td>
       </tr>
@@ -196,16 +221,23 @@
         <td align="right" valign="top">${uiLabelMap.PartyPhoneNumber}</td>
         <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="4" maxlength="10" name="countryCode" value="${telecomNumberData.countryCode!}" />
-          -&nbsp;<input type="text" class='inputBox' size="4" maxlength="10" name="areaCode" value="${telecomNumberData.areaCode!}" />
-          -&nbsp;<input type="text" class='inputBox' size="15" maxlength="15" name="contactNumber" value="${telecomNumberData.contactNumber!}" />
-          &nbsp;${uiLabelMap.PartyExtension}&nbsp;<input type="text" class='inputBox' size="6" maxlength="10" name="extension" value="${partyContactMechData.extension!}" />
+          <input type="text" class='inputBox' size="4" maxlength="10" name="countryCode"
+              value="${telecomNumberData.countryCode!}"/>-&nbsp;
+          <input type="text" class='inputBox' size="4" maxlength="10" name="areaCode"
+              value="${telecomNumberData.areaCode!}"/>-&nbsp;
+          <input type="text" class='inputBox' size="15" maxlength="15" name="contactNumber"
+              value="${telecomNumberData.contactNumber!}"/>&nbsp;
+          ${uiLabelMap.PartyExtension}&nbsp;
+          <input type="text" class='inputBox' size="6" maxlength="10"
+              name="extension" value="${partyContactMechData.extension!}"/>
         </td>
       </tr>
       <tr>
         <td align="right" valign="top"></td>
         <td>&nbsp;</td>
-        <td>[${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] [${uiLabelMap.PartyExtension}]</td>
+        <td>[${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}]
+          [${uiLabelMap.PartyExtension}]
+        </td>
       </tr>
     <#elseif contactMechTypeId = "EMAIL_ADDRESS">
       <tr>
@@ -212,8 +244,9 @@
         <td align="right" valign="top">${uiLabelMap.PartyEmailAddress}</td>
         <td>&nbsp;</td>
         <td>
-          <input type="text" class='inputBox' size="60" maxlength="255" name="emailAddress" value="<#if tryEntity>${contactMech.infoString!}<#else>${requestParameters.emailAddress!}</#if>" />
-        *</td>
+          <input type="text" class='inputBox' size="60" maxlength="255" name="emailAddress"
+              value="<#if tryEntity>${contactMech.infoString!}<#else>${requestParameters.emailAddress!}</#if>"/>*
+        </td>
       </tr>
     <#else>
       <tr>
@@ -220,30 +253,32 @@
         <td align="right" valign="top">${contactMechType.get("description",locale)!}</td>
         <td>&nbsp;</td>
         <td>
-            <input type="text" class='inputBox' size="60" maxlength="255" name="infoString" value="${contactMechData.infoString!}" />
-        *</td>
+          <input type="text" class='inputBox' size="60" maxlength="255" name="infoString"
+              value="${contactMechData.infoString!}"/>*
+        </td>
       </tr>
     </#if>
-      <tr>
-        <td align="right" valign="top">${uiLabelMap.PartyAllowSolicitation}?</td>
-        <td>&nbsp;</td>
-        <td>
-          <select name="allowSolicitation" class='selectBox'>
-            <#if (((partyContactMechData.allowSolicitation)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-            <#if (((partyContactMechData.allowSolicitation)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
-            <option></option>
-            <option value="Y">${uiLabelMap.CommonY}</option>
-            <option value="N">${uiLabelMap.CommonN}</option>
-          </select>
-        </td>
-      </tr>
-      </div>
-    </form>
+    <tr>
+      <td align="right" valign="top">${uiLabelMap.PartyAllowSolicitation}?</td>
+      <td>&nbsp;</td>
+      <td>
+        <select name="allowSolicitation" class='selectBox'>
+          <#if (((partyContactMechData.allowSolicitation)!"") == "Y")>
+            <option value="Y">${uiLabelMap.CommonY}</option></#if>
+          <#if (((partyContactMechData.allowSolicitation)!"") == "N")>
+            <option value="N">${uiLabelMap.CommonN}</option></#if>
+          <option></option>
+          <option value="Y">${uiLabelMap.CommonY}</option>
+          <option value="N">${uiLabelMap.CommonN}</option>
+        </select>
+      </td>
+    </tr>
+  </div>
+  </form>
   </table>
-
   <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
   <a href="javascript:document.editcontactmechform.submit()" class="button">${uiLabelMap.CommonSave}</a>
-  <#else>    
+  <#else>
     <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
   </#if>
 </#if>
Index: specialpurpose/ecommerce/template/customer/EditCreditCard.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/EditCreditCard.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/EditCreditCard.ftl	(working copy)
@@ -19,124 +19,145 @@
 
 <#if canNotView>
   <h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3>
-<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
 <#else>
   <#if !creditCard??>
-      <h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
-      <form method="post" action="<@ofbizUrl>createCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
-      <div>
-    <#else>
-      <h2>${uiLabelMap.AccountingEditCreditCard}</h2>
-      <form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
-        <div>
-        <input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
-    </#if>      
-      &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-      &nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>  
-      <p/>
-      <table width="90%" border="0" cellpadding="2" cellspacing="0">
-         ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
-         <tr>
-           <td align="right" valign="top">${uiLabelMap.PartyBillingAddress}</td>
-           <td>&nbsp;</td>
-           <td>
-        <#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
-        <a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="buttontext">
-          [Create New Address]</a>&nbsp;&nbsp;
-        -->
-             <table width="100%" border="0" cellpadding="1">
-             <#assign hasCurrent = false />
-             <#if curPostalAddress?has_content>
-               <#assign hasCurrent = true />
-               <tr>
-                 <td align="right" valign="top">
-                   <input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked" />
-                 </td>
-                 <td valign="top">
-                   ${uiLabelMap.PartyUseCurrentAddress}:
-                   <#list curPartyContactMechPurposes as curPartyContactMechPurpose>
-                     <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
-                     <div>
-                       ${curContactMechPurposeType.get("description",locale)!}
-                       <#if curPartyContactMechPurpose.thruDate??>
-                         ((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
-                       </#if>
-                     </div>
-                   </#list>
-                   <div>
-                   <#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}<br /></#if>
-                   <#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}<br /></#if>
-                     ${curPostalAddress.address1!}<br />
-                   <#if curPostalAddress.address2??>${curPostalAddress.address2}<br /></#if>
-                     ${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;${curPostalAddress.stateProvinceGeoId}</#if>&nbsp;${curPostalAddress.postalCode}
-                   <#if curPostalAddress.countryGeoId??><br />${curPostalAddress.countryGeoId}</#if>
-                   <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
-                   <#if curPartyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</#if>
-                   </div>
-                 </td>
-               </tr>
-             <#else>
-           <#-- <tr>
-            <td valign="top" colspan="2">
-              <div>${uiLabelMap.PartyBillingAddressNotSelected}</div>
-            </td>
-          </tr> -->
-             </#if>
+    <h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
+    <form method="post" action="<@ofbizUrl>createCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
+    <div>
+  <#else>
+    <h2>${uiLabelMap.AccountingEditCreditCard}</h2>
+    <form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
+    <div>
+      <input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
+  </#if>&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+  <a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
+  <p/>
+  <table width="90%" border="0" cellpadding="2" cellspacing="0">
+  ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
+    <tr>
+      <td align="right" valign="top">${uiLabelMap.PartyBillingAddress}</td>
+      <td>&nbsp;</td>
+      <td>
+      <#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
+      <a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="buttontext">
+        [Create New Address]</a>&nbsp;&nbsp;
+      -->
+        <table width="100%" border="0" cellpadding="1">
+          <#assign hasCurrent = false />
+          <#if curPostalAddress?has_content>
+            <#assign hasCurrent = true />
+            <tr>
+              <td align="right" valign="top">
+                <input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked"/>
+              </td>
+              <td valign="top">
+              ${uiLabelMap.PartyUseCurrentAddress}:
+                <#list curPartyContactMechPurposes as curPartyContactMechPurpose>
+                  <#assign curContactMechPurposeType =
+                      curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
+                  <div>
+                    ${curContactMechPurposeType.get("description",locale)!}
+                    <#if curPartyContactMechPurpose.thruDate??>
+                      ((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
+                    </#if>
+                  </div>
+                </#list>
+                <div>
+                  <#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}<br/></#if>
+                  <#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}
+                    <br/>
+                  </#if>
+                  ${curPostalAddress.address1!}<br/>
+                  <#if curPostalAddress.address2??>${curPostalAddress.address2}<br/></#if>
+                  ${curPostalAddress.city}
+                  <#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;
+                    ${curPostalAddress.stateProvinceGeoId}
+                  </#if>&nbsp;${curPostalAddress.postalCode}
+                  <#if curPostalAddress.countryGeoId??><br/>${curPostalAddress.countryGeoId}</#if>
+                  <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
+                  <#if curPartyContactMech.thruDate??>
+                    <div>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}
+                  </#if>
+                </div>
+              </td>
+            </tr>
+          <#else>
+            <#-- <tr>
+              <td valign="top" colspan="2">
+                <div>${uiLabelMap.PartyBillingAddressNotSelected}</div>
+              </td>
+            </tr> -->
+          </#if>
           <#-- is confusing
+            <tr>
+              <td valign="top" colspan="2">
+                <div>${uiLabelMap.EcommerceMessage3}</div>
+              </td>
+            </tr>
+          -->
+          <#list postalAddressInfos as postalAddressInfo>
+            <#assign contactMech = postalAddressInfo.contactMech />
+            <#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes />
+            <#assign postalAddress = postalAddressInfo.postalAddress />
+            <#assign partyContactMech = postalAddressInfo.partyContactMech />
+            <tr>
+              <td align="right" valign="top">
+                <input type="radio" name="contactMechId" value="${contactMech.contactMechId}"/>
+              </td>
+              <td valign="middle">
+                <#list partyContactMechPurposes as partyContactMechPurpose>
+                  <#assign contactMechPurposeType =
+                      partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
+                  <div>
+                    ${contactMechPurposeType.get("description",locale)!}
+                    <#if partyContactMechPurpose.thruDate??>
+                      (${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})
+                    </#if>
+                  </div>
+                </#list>
+                <div>
+                  <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br/></#if>
+                  <#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br/></#if>
+                  ${postalAddress.address1!}<br/>
+                  <#if postalAddress.address2??>${postalAddress.address2}<br/></#if>
+                  ${postalAddress.city}
+                  <#if postalAddress.stateProvinceGeoId?has_content>
+                    ,&nbsp;${postalAddress.stateProvinceGeoId}
+                  </#if>&nbsp;
+                  ${postalAddress.postalCode}
+                  <#if postalAddress.countryGeoId??><br/>${postalAddress.countryGeoId}</#if>
+                </div>
+                <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
+                <#if partyContactMech.thruDate??>
+                  <div>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</div>
+                </#if>
+              </td>
+            </tr>
+          </#list>
+          <#if !postalAddressInfos?has_content && !curContactMech??>
+            <tr>
+              <td colspan="2">
+                <div>${uiLabelMap.PartyNoContactInformation}.</div>
+              </td>
+            </tr>
+          </#if>
           <tr>
-            <td valign="top" colspan="2">
-              <div>${uiLabelMap.EcommerceMessage3}</div>
+            <td align="right" valign="top">
+              <input type="radio" name="contactMechId" value="_NEW_" <#if !hasCurrent>checked="checked"</#if>/>
             </td>
+            <td valign="middle">
+              <span>${uiLabelMap.PartyCreateNewBillingAddress}.</span>
+            </td>
           </tr>
-          -->
-             <#list postalAddressInfos as postalAddressInfo>
-               <#assign contactMech = postalAddressInfo.contactMech />
-               <#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes />
-               <#assign postalAddress = postalAddressInfo.postalAddress />
-               <#assign partyContactMech = postalAddressInfo.partyContactMech />
-               <tr>
-                 <td align="right" valign="top">
-                   <input type="radio" name="contactMechId" value="${contactMech.contactMechId}" />
-                 </td>
-                 <td valign="middle">
-                   <#list partyContactMechPurposes as partyContactMechPurpose>
-                     <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
-                     <div>
-                       ${contactMechPurposeType.get("description",locale)!}
-                       <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})</#if>
-                     </div>
-                   </#list>
-                   <div>
-                     <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br /></#if>
-                     <#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br /></#if>
-                     ${postalAddress.address1!}<br />
-                     <#if postalAddress.address2??>${postalAddress.address2}<br /></#if>
-                     ${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;${postalAddress.stateProvinceGeoId}</#if>&nbsp;${postalAddress.postalCode}
-                     <#if postalAddress.countryGeoId??><br />${postalAddress.countryGeoId}</#if>
-                   </div>
-                   <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
-                   <#if partyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</div></#if>
-                 </td>
-               </tr>
-               </#list>
-               <#if !postalAddressInfos?has_content && !curContactMech??>
-                 <tr><td colspan="2"><div>${uiLabelMap.PartyNoContactInformation}.</div></td></tr>
-               </#if>
-               <tr>
-                 <td align="right" valign="top">
-                   <input type="radio" name="contactMechId" value="_NEW_" <#if !hasCurrent>checked="checked"</#if> />
-                 </td>
-                 <td valign="middle">
-                   <span>${uiLabelMap.PartyCreateNewBillingAddress}.</span>
-                 </td>
-               </tr>
-             </table>
-           </td>
-         </tr>
-       </table>
-       </div>
-     </form>  
+        </table>
+      </td>
+    </tr>
+  </table>
+</div>
+</form>
   &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-  &nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>  
+  &nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
 </#if>
 
Index: specialpurpose/ecommerce/template/customer/EditEftAccount.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/EditEftAccount.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/EditEftAccount.ftl	(working copy)
@@ -18,51 +18,67 @@
 -->
 
 <#if canNotView>
-  <p><h3>${uiLabelMap.AccountingEFTNotBelongToYou}.</h3></p>
-&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGoBack}</a>
+  <p><h3>${uiLabelMap.AccountingEFTNotBelongToYou}.</h3></p>&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGoBack}</a>
 <#else>
-    <#if !eftAccount??>
-      <h1>${uiLabelMap.AccountingAddNewEftAccount}</h1>
-      <form method="post" action="<@ofbizUrl>createEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform" style="margin: 0;">
-    <#else>
-      <h1>${uiLabelMap.PageTitleEditEFTAccount}</h1>
-      <form method="post" action="<@ofbizUrl>updateEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform" style="margin: 0;">
-        <input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
-    </#if>
-    &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-    &nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
-    <p/>
-    <table width="90%" border="0" cellpadding="2" cellspacing="0">
+  <#if !eftAccount??>
+    <h1>${uiLabelMap.AccountingAddNewEftAccount}</h1>
+    <form method="post" action="<@ofbizUrl>createEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform"
+        style="margin: 0;">
+  <#else>
+    <h1>${uiLabelMap.PageTitleEditEFTAccount}</h1>
+    <form method="post" action="<@ofbizUrl>updateEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform"
+        style="margin: 0;">
+    <input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
+  </#if>&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+  <a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
+  <p/>
+  <table width="90%" border="0" cellpadding="2" cellspacing="0">
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingNameOnAccount}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingNameOnAccount}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount" value="${eftAccountData.nameOnAccount!}" />
-      *</td>
+        <input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount"
+            value="${eftAccountData.nameOnAccount!}"/>*
+      </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingCompanyNameOnAccount}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingCompanyNameOnAccount}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount" value="${eftAccountData.companyNameOnAccount!}" />
+        <input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount"
+            value="${eftAccountData.companyNameOnAccount!}"/>
       </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingBankName}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingBankName}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="30" maxlength="60" name="bankName" value="${eftAccountData.bankName!}" />
-      *</td>
+        <input type="text" class="inputBox" size="30" maxlength="60"
+            name="bankName"value="${eftAccountData.bankName!}"/>*
+      </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingRoutingNumber}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingRoutingNumber}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber" value="${eftAccountData.routingNumber!}" />
-      *</td>
+        <input type="text" class="inputBox" size="10" maxlength="30"
+            name="routingNumber" value="${eftAccountData.routingNumber!}"/>*
+      </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingAccountType}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingAccountType}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
         <select name="accountType" class="selectBox">
@@ -70,26 +86,33 @@
           <option></option>
           <option>${uiLabelMap.CommonChecking}</option>
           <option>${uiLabelMap.CommonSavings}</option>
-        </select>
-      *</td>
+        </select>*
+      </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingAccountNumber}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.AccountingAccountNumber}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber" value="${eftAccountData.accountNumber!}" />
-      *</td>
+        <input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber"
+               value="${eftAccountData.accountNumber!}"/>*
+      </td>
     </tr>
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonDescription}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.CommonDescription}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
-        <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${paymentMethodData.description!}" />
+        <input type="text" class="inputBox" size="30" maxlength="60" name="description"
+            value="${paymentMethodData.description!}"/>
       </td>
     </tr>
-
     <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.PartyBillingAddress}</div></td>
+      <td width="26%" align="right" valign="top">
+        <div>${uiLabelMap.PartyBillingAddress}</div>
+      </td>
       <td width="5">&nbsp;</td>
       <td width="74%">
         <#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
@@ -97,41 +120,54 @@
           [Create New Address]</a>&nbsp;&nbsp;
         -->
         <table width="100%" border="0" cellpadding="1">
-        <#if curPostalAddress??>
-          <tr>
-            <td align="right" valign="top" width="1%">
-              <input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked" />
-            </td>
-            <td valign="top" width="80%">
-              <div><b>${uiLabelMap.PartyUseCurrentAddress}:</b></div>
-              <#list curPartyContactMechPurposes as curPartyContactMechPurpose>
-                <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
+          <#if curPostalAddress??>
+            <tr>
+              <td align="right" valign="top" width="1%">
+                <input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked"/>
+              </td>
+              <td valign="top" width="80%">
+                <div><b>${uiLabelMap.PartyUseCurrentAddress}:</b></div>
+                <#list curPartyContactMechPurposes as curPartyContactMechPurpose>
+                  <#assign curContactMechPurposeType =
+                      curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
+                  <div>
+                    <b>${curContactMechPurposeType.get("description",locale)!}</b>
+                    <#if curPartyContactMechPurpose.thruDate??>
+                      (${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
+                    </#if>
+                  </div>
+                </#list>
                 <div>
-                  <b>${curContactMechPurposeType.get("description",locale)!}</b>
-                  <#if curPartyContactMechPurpose.thruDate??>
-                    (${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
+                  <#if curPostalAddress.toName??>
+                    <b>${uiLabelMap.CommonTo}:</b> ${curPostalAddress.toName}<br/>
                   </#if>
+                  <#if curPostalAddress.attnName??>
+                    <b>${uiLabelMap.PartyAddrAttnName}:</b> ${curPostalAddress.attnName}<br/>
+                  </#if>
+                  ${curPostalAddress.address1!}<br/>
+                  <#if curPostalAddress.address2??>${curPostalAddress.address2}<br/></#if>
+                  ${curPostalAddress.city}
+                  <#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;
+                    ${curPostalAddress.stateProvinceGeoId}
+                  </#if>&nbsp;
+                  ${curPostalAddress.postalCode}
+                  <#if curPostalAddress.countryGeoId??><br/>${curPostalAddress.countryGeoId}</#if>
                 </div>
-              </#list>
-              <div>
-                <#if curPostalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${curPostalAddress.toName}<br /></#if>
-                <#if curPostalAddress.attnName??><b>${uiLabelMap.PartyAddrAttnName}:</b> ${curPostalAddress.attnName}<br /></#if>
-                ${curPostalAddress.address1!}<br />
-                <#if curPostalAddress.address2??>${curPostalAddress.address2}<br /></#if>
-                ${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>,&nbsp;${curPostalAddress.stateProvinceGeoId}</#if>&nbsp;${curPostalAddress.postalCode}
-                <#if curPostalAddress.countryGeoId??><br />${curPostalAddress.countryGeoId}</#if>
-              </div>
-              <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
-              <#if curPartyContactMech.thruDate??><div><b>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</b></div></#if>
-            </td>
-          </tr>
-        <#else>
-           <#-- <tr>
-            <td valign="top" colspan="2">
-              <div>${uiLabelMap.PartyNoBillingAddress}</div>
-            </td>
-          </tr> -->
-        </#if>
+                <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(curPartyContactMech.fromDate.toString())!})</div>
+                <#if curPartyContactMech.thruDate??>
+                  <div><b>${uiLabelMap.CommonDelete}:&nbsp;${curPartyContactMech.thruDate.toString()}</b></div>
+                </#if>
+              </td>
+            </tr>
+          <#else>
+            <#--
+              <tr>
+                <td valign="top" colspan="2">
+                  <div>${uiLabelMap.PartyNoBillingAddress}</div>
+                </td>
+              </tr>
+            -->
+          </#if>
           <#-- is confusing
           <tr>
             <td valign="top" colspan="2">
@@ -146,38 +182,53 @@
             <#assign partyContactMech = postalAddressInfo.partyContactMech>
             <tr>
               <td align="right" valign="top" width="1%">
-                <input type="radio" name="contactMechId" value="${contactMech.contactMechId}" />
+                <input type="radio" name="contactMechId" value="${contactMech.contactMechId}"/>
               </td>
               <td valign="top" width="80%">
                 <#list partyContactMechPurposes as partyContactMechPurpose>
-                    <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
-                    <div>
-                      <b>${contactMechPurposeType.get("description",locale)!}</b>
-                      <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})</#if>
-                    </div>
+                  <#assign contactMechPurposeType =
+                      partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
+                  <div>
+                    <b>${contactMechPurposeType.get("description",locale)!}</b>
+                    <#if partyContactMechPurpose.thruDate??>
+                      (${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})
+                    </#if>
+                  </div>
                 </#list>
                 <div>
-                  <#if postalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${postalAddress.toName}<br /></#if>
-                  <#if postalAddress.attnName??><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br /></#if>
-                  ${postalAddress.address1!}<br />
-                  <#if postalAddress.address2??>${postalAddress.address2}<br /></#if>
-                  ${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;${postalAddress.stateProvinceGeoId}</#if>&nbsp;${postalAddress.postalCode}
-                  <#if postalAddress.countryGeoId??><br />${postalAddress.countryGeoId}</#if>
+                  <#if postalAddress.toName??><b>${uiLabelMap.CommonTo}:</b> ${postalAddress.toName}<br/></#if>
+                  <#if postalAddress.attnName??>
+                    <b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br/>
+                  </#if>
+                  ${postalAddress.address1!}<br/>
+                  <#if postalAddress.address2??>${postalAddress.address2}<br/></#if>
+                  ${postalAddress.city}
+                  <#if postalAddress.stateProvinceGeoId?has_content>,&nbsp;
+                    ${postalAddress.stateProvinceGeoId}
+                  </#if>&nbsp;
+                  ${postalAddress.postalCode}
+                  <#if postalAddress.countryGeoId??><br/>${postalAddress.countryGeoId}</#if>
                 </div>
                 <div>(${uiLabelMap.CommonUpdated}:&nbsp;${(partyContactMech.fromDate.toString())!})</div>
-                <#if partyContactMech.thruDate??><div><b>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</b></div></#if>
+                <#if partyContactMech.thruDate??>
+                  <div><b>${uiLabelMap.CommonDelete}:&nbsp;${partyContactMech.thruDate.toString()}</b></div>
+                </#if>
               </td>
             </tr>
           </#list>
           <#if !postalAddressInfos?has_content && !curContactMech??>
-              <tr><td colspan="2"><div>${uiLabelMap.PartyNoContactInformation}.</div></td></tr>
+            <tr>
+              <td colspan="2">
+                <div>${uiLabelMap.PartyNoContactInformation}.</div>
+              </td>
+            </tr>
           </#if>
         </table>
       </td>
     </tr>
   </table>
-  </form>
+</form>
   &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-  &nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>  
+  &nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
 </#if>
 
Index: specialpurpose/ecommerce/template/customer/EditGiftCard.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/EditGiftCard.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/EditGiftCard.ftl	(working copy)
@@ -18,96 +18,108 @@
 -->
 
 <#if canNotView>
-  <p><h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3></p>
-&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
+  <p><h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3></p>&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
 <#else>
-    <#if !giftCard??>
-      <h1>${uiLabelMap.AccountingAddNewGiftCard}</h1>
-      <form method="post" action="<@ofbizUrl>createGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform" style="margin: 0;">
-    <#else>
-      <h1>${uiLabelMap.AccountingEditGiftCard}</h1>
-      <form method="post" action="<@ofbizUrl>updateGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform" style="margin: 0;">
-        <input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
-    </#if>
-    &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-    &nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>  
-    <p/> 
-    <table width="90%" border="0" cellpadding="2" cellspacing="0">
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingCardNumber}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%">
-        <#if giftCardData?has_content && giftCardData.cardNumber?has_content>
-          <#assign pcardNumberDisplay = "">
-          <#assign pcardNumber = giftCardData.cardNumber!>
-          <#if pcardNumber?has_content>
-            <#assign psize = pcardNumber?length - 4>
-            <#if 0 < psize>
-              <#list 0 .. psize-1 as foo>
-                <#assign pcardNumberDisplay = pcardNumberDisplay + "*">
-              </#list>
-              <#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]>
-            <#else>
-              <#assign pcardNumberDisplay = pcardNumber>
+  <#if !giftCard??>
+    <h1>${uiLabelMap.AccountingAddNewGiftCard}</h1>
+    <form method="post" action="<@ofbizUrl>createGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>"
+        name="editgiftcardform" style="margin: 0;">
+  <#else>
+    <h1>${uiLabelMap.AccountingEditGiftCard}</h1>
+    <form method="post" action="<@ofbizUrl>updateGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform"
+        style="margin: 0;">
+      <input type="hidden" name="paymentMethodId" value="${paymentMethodId}"/>
+  </#if>&nbsp;
+      <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+      <a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
+      <p/>
+      <table width="90%" border="0" cellpadding="2" cellspacing="0">
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.AccountingCardNumber}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <#if giftCardData?has_content && giftCardData.cardNumber?has_content>
+              <#assign pcardNumberDisplay = "">
+              <#assign pcardNumber = giftCardData.cardNumber!>
+              <#if pcardNumber?has_content>
+                <#assign psize = pcardNumber?length - 4>
+                <#if 0 < psize>
+                  <#list 0 .. psize-1 as foo>
+                    <#assign pcardNumberDisplay = pcardNumberDisplay + "*">
+                  </#list>
+                  <#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]>
+                <#else>
+                  <#assign pcardNumberDisplay = pcardNumber>
+                </#if>
+              </#if>
             </#if>
-          </#if>
-        </#if>
-        <input type="text" class="inputBox" size="20" maxlength="60" name="cardNumber" value="${pcardNumberDisplay!}" />
-      </td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingPINNumber}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%">
-        <input type="password" class="inputBox" size="10" maxlength="60" name="pinNumber" value="${giftCardData.pinNumber!}" />
-      </td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.AccountingExpirationDate}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%">
-        <#assign expMonth = "">
-        <#assign expYear = "">
-        <#if giftCardData?? && giftCardData.expireDate??>
-          <#assign expDate = giftCard.expireDate>
-          <#if (expDate?? && expDate.indexOf("/") > 0)>
-            <#assign expMonth = expDate.substring(0,expDate.indexOf("/"))>
-            <#assign expYear = expDate.substring(expDate.indexOf("/")+1)>
-          </#if>
-        </#if>
-        <select name="expMonth" class="selectBox" onchange="javascript:makeExpDate();">
-          <#if giftCardData?has_content && expMonth?has_content>
-            <#assign ccExprMonth = expMonth>
-          <#else>
-            <#assign ccExprMonth = requestParameters.expMonth!>
-          </#if>
-          <#if ccExprMonth?has_content>
-            <option value="${ccExprMonth!}">${ccExprMonth!}</option>
-          </#if>
-          ${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
-        </select>
-        <select name="expYear" class="selectBox" onchange="javascript:makeExpDate();">
-          <#if giftCard?has_content && expYear?has_content>
-            <#assign ccExprYear = expYear>
-          <#else>
-            <#assign ccExprYear = requestParameters.expYear!>
-          </#if>
-          <#if ccExprYear?has_content>
-            <option value="${ccExprYear!}">${ccExprYear!}</option>
-          </#if>
-          ${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
-        </select>
-      </td>
-    </tr>
-    <tr>
-      <td width="26%" align="right" valign="top"><div>${uiLabelMap.CommonDescription}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%">
-        <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${paymentMethodData.description!}" />
-      </td>
-    </tr>
-  </table>
-  </form>  
-  &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
-  &nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>  
+            <input type="text" class="inputBox" size="20" maxlength="60" name="cardNumber" value="${pcardNumberDisplay!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.AccountingPINNumber}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <input type="password" class="inputBox" size="10" maxlength="60" name="pinNumber"
+                value="${giftCardData.pinNumber!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.AccountingExpirationDate}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <#assign expMonth = "">
+            <#assign expYear = "">
+            <#if giftCardData?? && giftCardData.expireDate??>
+              <#assign expDate = giftCard.expireDate>
+              <#if (expDate?? && expDate.indexOf("/") > 0)>
+                <#assign expMonth = expDate.substring(0,expDate.indexOf("/"))>
+                <#assign expYear = expDate.substring(expDate.indexOf("/")+1)>
+              </#if>
+            </#if>
+            <select name="expMonth" class="selectBox" onchange="javascript:makeExpDate();">
+              <#if giftCardData?has_content && expMonth?has_content>
+                <#assign ccExprMonth = expMonth>
+              <#else>
+                <#assign ccExprMonth = requestParameters.expMonth!>
+              </#if>
+              <#if ccExprMonth?has_content>
+                <option value="${ccExprMonth!}">${ccExprMonth!}</option>
+              </#if>
+              ${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
+            </select>
+            <select name="expYear" class="selectBox" onchange="javascript:makeExpDate();">
+              <#if giftCard?has_content && expYear?has_content>
+                <#assign ccExprYear = expYear>
+              <#else>
+                <#assign ccExprYear = requestParameters.expYear!>
+              </#if>
+              <#if ccExprYear?has_content>
+                <option value="${ccExprYear!}">${ccExprYear!}</option>
+              </#if>
+              ${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td width="26%" align="right" valign="top">
+            <div>${uiLabelMap.CommonDescription}</div>
+          </td>
+          <td width="5">&nbsp;</td>
+          <td width="74%">
+            <input type="text" class="inputBox" size="30" maxlength="60" name="description"
+                value="${paymentMethodData.description!}"/>
+          </td>
+        </tr>
+      </table>
+    </form>&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+  <a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
 </#if>
Index: specialpurpose/ecommerce/template/customer/EditPerson.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/EditPerson.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/EditPerson.ftl	(working copy)
@@ -17,162 +17,172 @@
 under the License.
 -->
 <#if person??>
-  <h2>${uiLabelMap.PartyEditPersonalInformation}</h2>
-    &nbsp;<form id="editpersonform1" method="post" action="<@ofbizUrl>updatePerson</@ofbizUrl>" name="editpersonform">    
+  <h2>${uiLabelMap.PartyEditPersonalInformation}</h2>&nbsp;
+  <form id="editpersonform1" method="post" action="<@ofbizUrl>updatePerson</@ofbizUrl>" name="editpersonform">
 <#else>
-  <h2>${uiLabelMap.PartyAddNewPersonalInformation}</h2>
-    &nbsp;<form id="editpersonform2" method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>" name="editpersonform">
+  <h2>${uiLabelMap.PartyAddNewPersonalInformation}</h2>&nbsp;
+  <form id="editpersonform2" method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>"
+      name="editpersonform">
 </#if>
-<div>
-  &nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
-  &nbsp;<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
-  <p/>    
-  <input type="hidden" name="partyId" value="${person.partyId!}" />
-  <table width="90%" border="0" cellpadding="2" cellspacing="0">
-  <tr>
-    <td align="right">${uiLabelMap.CommonTitle}</td>
-    <td>
-      <select name="personalTitle" class="selectBox">
-        <#if personData.personalTitle?has_content >
-          <option>${personData.personalTitle}</option>
-          <option value="${personData.personalTitle}"> -- </option>
-        <#else>
-          <option value="">${uiLabelMap.CommonSelectOne}</option>
-        </#if>
-        <option>${uiLabelMap.CommonTitleMr}</option>
-        <option>${uiLabelMap.CommonTitleMrs}</option>
-        <option>${uiLabelMap.CommonTitleMs}</option>
-        <option>${uiLabelMap.CommonTitleDr}</option>
-      </select>
-    </td>
-  </tr>
-  <tr>
-    <td align="right">${uiLabelMap.PartyFirstName}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="30" name="firstName" value="${personData.firstName!}"/>
-      *</td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyMiddleInitial}</td>
-      <td>
-        <input type="text" class='inputBox' size="4" maxlength="4" name="middleName" value="${personData.middleName!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyLastName}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="30" name="lastName" value="${personData.lastName!}"/>
-      *</td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartySuffix}</td>
-      <td>
-        <input type="text" class='inputBox' size="10" maxlength="30" name="suffix" value="${personData.suffix!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyNickName}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="nickname" value="${personData.nickname!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyGender}</td>
-      <td>
-        <select name="gender" class='selectBox'>
-          <#if personData.gender?has_content >
-            <option value="${personData.gender}">
+    <div>
+      &nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
+      &nbsp;<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
+      <p/>
+      <input type="hidden" name="partyId" value="${person.partyId!}"/>
+      <table width="90%" border="0" cellpadding="2" cellspacing="0">
+        <tr>
+          <td align="right">${uiLabelMap.CommonTitle}</td>
+          <td>
+            <select name="personalTitle" class="selectBox">
+            <#if personData.personalTitle?has_content >
+              <option>${personData.personalTitle}</option>
+              <option value="${personData.personalTitle}"> --</option>
+            <#else>
+              <option value="">${uiLabelMap.CommonSelectOne}</option>
+            </#if>
+              <option>${uiLabelMap.CommonTitleMr}</option>
+              <option>${uiLabelMap.CommonTitleMrs}</option>
+              <option>${uiLabelMap.CommonTitleMs}</option>
+              <option>${uiLabelMap.CommonTitleDr}</option>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyFirstName}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="30" name="firstName"
+                value="${personData.firstName!}"/>*
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyMiddleInitial}</td>
+          <td>
+            <input type="text" class='inputBox' size="4" maxlength="4" name="middleName"
+                value="${personData.middleName!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyLastName}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="30" name="lastName" value="${personData.lastName!}"/>
+            *
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartySuffix}</td>
+          <td>
+            <input type="text" class='inputBox' size="10" maxlength="30" name="suffix" value="${personData.suffix!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyNickName}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="nickname" value="${personData.nickname!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyGender}</td>
+          <td>
+            <select name="gender" class='selectBox'>
+            <#if personData.gender?has_content >
+              <option value="${personData.gender}">
                 <#if personData.gender == "M" >${uiLabelMap.CommonMale}</#if>
-                <#if personData.gender == "F" >${uiLabelMap.CommonFemale}</#if>
-            </option>
-            <option value="${personData.gender}"> -- </option>
-          <#else>
-            <option value="">${uiLabelMap.CommonSelectOne}</option>
-          </#if>
-          <option value="M">${uiLabelMap.CommonMale}</option>
-          <option value="F">${uiLabelMap.CommonFemale}</option>
-        </select>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyBirthDate}</td>
-      <td>
-        <input type="text" class='inputBox' size="11" maxlength="20" name="birthDate" value="${(personData.birthDate.toString())!}"/>
-        <div>${uiLabelMap.CommonFormatDate}</div>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyHeight}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="height" value="${personData.height!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyWeight}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="weight" value="${personData.weight!}"/>
-      </td>
-    </tr>
+                  <#if personData.gender == "F" >${uiLabelMap.CommonFemale}</#if>
+              </option>
+              <option value="${personData.gender}"> --</option>
+            <#else>
+              <option value="">${uiLabelMap.CommonSelectOne}</option>
+            </#if>
+              <option value="M">${uiLabelMap.CommonMale}</option>
+              <option value="F">${uiLabelMap.CommonFemale}</option>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyBirthDate}</td>
+          <td>
+            <input type="text" class='inputBox' size="11" maxlength="20" name="birthDate"
+                value="${(personData.birthDate.toString())!}"/>
+            <div>${uiLabelMap.CommonFormatDate}</div>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyHeight}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="height" value="${personData.height!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyWeight}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="weight" value="${personData.weight!}"/>
+          </td>
+        </tr>
 
-    <tr>
-      <td align="right">${uiLabelMap.PartyMaidenName}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="mothersMaidenName" value="${personData.mothersMaidenName!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyMaritalStatus}</td>
-      <td>
-        <select name="maritalStatus" class='selectBox'>
-          <#if personData.maritalStatus?has_content>
-             <option value="${personData.maritalStatus}">
-               <#if personData.maritalStatus == "S">${uiLabelMap.PartySingle}</#if>
-               <#if personData.maritalStatus == "M">${uiLabelMap.PartyMarried}</#if>
-               <#if personData.maritalStatus == "D">${uiLabelMap.PartyDivorced}</#if>
-             </option>
-          <option value="${personData.maritalStatus}"> -- </option>
-          <#else>
-          <option></option>
-          </#if>
-          <option value="S">${uiLabelMap.PartySingle}</option>
-          <option value="M">${uiLabelMap.PartyMarried}</option>
-          <option value="D">${uiLabelMap.PartyDivorced}</option>
-        </select>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartySocialSecurityNumber}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="socialSecurityNumber" value="${personData.socialSecurityNumber!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyPassportNumber}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="passportNumber" value="${personData.passportNumber!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyPassportExpireDate}</td>
-      <td>
-        <input type="text" class='inputBox' size="11" maxlength="20" name="passportExpireDate" value="${personData.passportExpireDate!}"/>
-        <div>${uiLabelMap.CommonFormatDate}</div>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.PartyTotalYearsWorkExperience}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="totalYearsWorkExperience" value="${personData.totalYearsWorkExperience!}"/>
-      </td>
-    </tr>
-    <tr>
-      <td align="right">${uiLabelMap.CommonComment}</td>
-      <td>
-        <input type="text" class='inputBox' size="30" maxlength="60" name="comments" value="${personData.comments!}"/>
-      </td>
-    </tr>
-</table>
-</div>
-</form>
-&nbsp;<a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
-&nbsp;<a id="editpersonform3" href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
\ No newline at end of file
+        <tr>
+          <td align="right">${uiLabelMap.PartyMaidenName}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="mothersMaidenName"
+                value="${personData.mothersMaidenName!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyMaritalStatus}</td>
+          <td>
+            <select name="maritalStatus" class='selectBox'>
+            <#if personData.maritalStatus?has_content>
+              <option value="${personData.maritalStatus}">
+                <#if personData.maritalStatus == "S">${uiLabelMap.PartySingle}</#if>
+                 <#if personData.maritalStatus == "M">${uiLabelMap.PartyMarried}</#if>
+                 <#if personData.maritalStatus == "D">${uiLabelMap.PartyDivorced}</#if>
+              </option>
+              <option value="${personData.maritalStatus}"> --</option>
+            <#else>
+              <option></option>
+            </#if>
+              <option value="S">${uiLabelMap.PartySingle}</option>
+              <option value="M">${uiLabelMap.PartyMarried}</option>
+              <option value="D">${uiLabelMap.PartyDivorced}</option>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartySocialSecurityNumber}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="socialSecurityNumber"
+                value="${personData.socialSecurityNumber!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyPassportNumber}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="passportNumber"
+                value="${personData.passportNumber!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyPassportExpireDate}</td>
+          <td>
+            <input type="text" class='inputBox' size="11" maxlength="20" name="passportExpireDate"
+                value="${personData.passportExpireDate!}"/>
+            <div>${uiLabelMap.CommonFormatDate}</div>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.PartyTotalYearsWorkExperience}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="totalYearsWorkExperience"
+                value="${personData.totalYearsWorkExperience!}"/>
+          </td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.CommonComment}</td>
+          <td>
+            <input type="text" class='inputBox' size="30" maxlength="60" name="comments" value="${personData.comments!}"/>
+          </td>
+        </tr>
+      </table>
+    </div>
+  </form>&nbsp;
+  <a href='<@ofbizUrl>${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>&nbsp;
+  <a id="editpersonform3" href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/customer/FinAccountDetail.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/FinAccountDetail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/FinAccountDetail.ftl	(working copy)
@@ -19,27 +19,47 @@
 
 <table border="0" cellpadding="1">
   <tr>
-      <td align="right" width="25%"><div class="tableheadtext">Account Number:</div></td>
-      <td><div>${ownedFinAccount.finAccountId}</div></td>
+    <td align="right" width="25%">
+      <div class="tableheadtext">Account Number:</div>
+    </td>
+    <td>
+      <div>${ownedFinAccount.finAccountId}</div>
+    </td>
   </tr>
   <tr>
-      <td align="right"><div class="tableheadtext">Currency:</div></td>
-      <td><div>${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]</div></td>
+    <td align="right">
+      <div class="tableheadtext">Currency:</div>
+    </td>
+    <td>
+      <div>${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]</div>
+    </td>
   </tr>
   <tr>
-      <td align="right"><div class="tableheadtext">Date Opened:</div></td>
-      <td><div>${ownedFinAccount.fromDate!}</div></td>
+    <td align="right">
+      <div class="tableheadtext">Date Opened:</div>
+    </td>
+    <td>
+      <div>${ownedFinAccount.fromDate!}</div>
+    </td>
   </tr>
   <tr>
-      <td align="right"><div class="tableheadtext">Status:</div></td>
-      <td><div>${(finAccountStatusItem.description)?default("Active")}</div></td>
+    <td align="right">
+      <div class="tableheadtext">Status:</div>
+    </td>
+    <td>
+      <div>${(finAccountStatusItem.description)?default("Active")}</div>
+    </td>
   </tr>
-  <#if ownedFinAccount.replenishLevel??>
+<#if ownedFinAccount.replenishLevel??>
   <tr>
-      <td align="right"><div class="tableheadtext">Replenish Level:</div></td>
-      <td><div>${ownedFinAccount.replenishLevel}</div></td>
+    <td align="right">
+      <div class="tableheadtext">Replenish Level:</div>
+    </td>
+    <td>
+      <div>${ownedFinAccount.replenishLevel}</div>
+    </td>
   </tr>
-  </#if>
+</#if>
 </table>
 
 <table border="0" cellpadding="1" border="2">
@@ -51,22 +71,27 @@
     <th>Type</th>
     <th>Amount</th>
   </tr>
-  <#list ownedFinAccountTransList as ownedFinAccountTrans>
-    <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
-    <#assign displayAmount = ownedFinAccountTrans.amount/>
-    <#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
-      <#assign displayAmount = -displayAmount/>
-    </#if>
+    <#list ownedFinAccountTransList as ownedFinAccountTrans>
+      <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
+      <#assign displayAmount = ownedFinAccountTrans.amount/>
+      <#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
+        <#assign displayAmount = -displayAmount/>
+      </#if>
+      <tr>
+        <td>${ownedFinAccountTrans.transactionDate!}</td>
+        <td>${ownedFinAccountTrans.finAccountTransId}</td>
+        <td>
+          <#if ownedFinAccountTrans.orderId?has_content>
+            ${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}
+          <#else>&nbsp;
+          </#if>
+        </td>
+        <td><#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else>&nbsp;</#if></td>
+        <td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}</td>
+        <td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
+      </tr>
+    </#list>
   <tr>
-    <td>${ownedFinAccountTrans.transactionDate!}</td>
-    <td>${ownedFinAccountTrans.finAccountTransId}</td>
-    <td><#if ownedFinAccountTrans.orderId?has_content>${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}<#else>&nbsp;</#if></td>
-    <td><#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else>&nbsp;</#if></td>
-    <td>${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}</td>
-    <td><@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/></td>
-  </tr>
-  </#list>
-  <tr>
     <th>Actual Balance</th>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
@@ -75,32 +100,32 @@
 </table>
 
 <#if ownedFinAccountAuthList?has_content>
-<table border="0" cellpadding="1">
-  <tr>
-    <th>Authorization ${uiLabelMap.CommonDate}</th>
-    <th>ID</th>
-    <th>Expires</th>
-    <th>Amount</th>
-  </tr>
-  <tr>
-    <td>Actual Balance</td>
-    <td>&nbsp;</td>
-    <td>&nbsp;</td>
-    <td><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></td>
-  </tr>
-  <#list ownedFinAccountAuthList as ownedFinAccountAuth>
-  <tr>
-    <td>${ownedFinAccountAuth.authorizationDate!}</td>
-    <td>${ownedFinAccountAuth.finAccountAuthId}</td>
-    <td>${ownedFinAccountAuth.thruDate!}</td>
-    <td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
-  </tr>
-  </#list>
-  <tr>
-    <th>Available Balance</th>
-    <td>&nbsp;</td>
-    <td>&nbsp;</td>
-    <th><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></th>
-  </tr>
-</table>
+  <table border="0" cellpadding="1">
+    <tr>
+      <th>Authorization ${uiLabelMap.CommonDate}</th>
+      <th>ID</th>
+      <th>Expires</th>
+      <th>Amount</th>
+    </tr>
+    <tr>
+      <td>Actual Balance</td>
+      <td>&nbsp;</td>
+      <td>&nbsp;</td>
+      <td><@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/></td>
+    </tr>
+    <#list ownedFinAccountAuthList as ownedFinAccountAuth>
+      <tr>
+        <td>${ownedFinAccountAuth.authorizationDate!}</td>
+        <td>${ownedFinAccountAuth.finAccountAuthId}</td>
+        <td>${ownedFinAccountAuth.thruDate!}</td>
+        <td><@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/></td>
+      </tr>
+    </#list>
+    <tr>
+      <th>Available Balance</th>
+      <td>&nbsp;</td>
+      <td>&nbsp;</td>
+      <th><@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/></th>
+    </tr>
+  </table>
 </#if>
Index: specialpurpose/ecommerce/template/customer/GiftCardBalance.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/GiftCardBalance.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/GiftCardBalance.ftl	(working copy)
@@ -18,11 +18,11 @@
 -->
 
 <h1>${uiLabelMap.AccountingGiftCardBalance}</h1>
-<br />
+<br/>
 <div>${uiLabelMap.AccountingEnterGiftCardNumber}</div>
-<br />
+<br/>
 
-<br />
+<br/>
 <table align="center">
   <#if requestAttributes.processResult??>
     <tr>
@@ -43,23 +43,35 @@
         </div>
       </td>
     </tr>
-    <tr><td colspan="2">&nbsp;</td></tr>
+    <tr>
+      <td colspan="2">&nbsp;</td>
+    </tr>
   </#if>
   <form method="post" action="<@ofbizUrl>querygcbalance</@ofbizUrl>">
-    <input type="hidden" name="currency" value="USD" />
-    <input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}" />
+    <input type="hidden" name="currency" value="USD"/>
+    <input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}"/>
     <tr>
-      <td><div class="tableheadtext">${uiLabelMap.AccountingCardNumber}</div></td>
-      <td><input type="text" class="inputBox" name="cardNumber" size="20" value="${(requestParameters.cardNumber)!}" /></td>
+      <td>
+        <div class="tableheadtext">${uiLabelMap.AccountingCardNumber}</div>
+      </td>
+      <td>
+        <input type="text" class="inputBox" name="cardNumber" size="20" value="${(requestParameters.cardNumber)!}"/>
+      </td>
     </tr>
     <tr>
-      <td><div class="tableheadtext">${uiLabelMap.AccountingPINNumber}</div></td>
-      <td><input type="text" class="inputBox" name="pin" size="15" value="${(requestParameters.pin)!}" /></td>
+      <td>
+        <div class="tableheadtext">${uiLabelMap.AccountingPINNumber}</div>
+      </td>
+      <td><input type="text" class="inputBox" name="pin" size="15" value="${(requestParameters.pin)!}"/></td>
     </tr>
-    <tr><td colspan="2">&nbsp;</td></tr>
     <tr>
-      <td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceCheckBalance}" /></td>
+      <td colspan="2">&nbsp;</td>
     </tr>
+    <tr>
+      <td colspan="2" align="center">
+        <input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceCheckBalance}"/>
+      </td>
+    </tr>
   </form>
 </table>
-<br />
+<br/>
Index: specialpurpose/ecommerce/template/customer/GiftCardLink.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/GiftCardLink.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/GiftCardLink.ftl	(working copy)
@@ -18,14 +18,14 @@
 -->
 
 <h1>${uiLabelMap.AccountingGiftCardLink}</h1>
-<br />
+<br/>
 <div>${uiLabelMap.AccountingEnterGiftCardLink}.</div>
-<br />
+<br/>
 
 <form name="gclink" method="post" action="<@ofbizUrl>linkgiftcard</@ofbizUrl>">
-  <input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}" />
+  <input type="hidden" name="paymentConfig" value="${paymentProperties?default("payment.properties")}"/>
   <#if userLogin?has_content>
-    <input type="hidden" name="partyId" value="${userLogin.partyId}" />
+    <input type="hidden" name="partyId" value="${userLogin.partyId}"/>
   </#if>
   <table align="center">
     <tr>
@@ -34,12 +34,16 @@
       </td>
     </tr>
     <tr>
-      <td><div>${uiLabelMap.AccountingCardNumber}</div></td>
-      <td><input type="text" class="inputBox" name="physicalCard" size="20" /></td>
+      <td>
+        <div>${uiLabelMap.AccountingCardNumber}</div>
+      </td>
+      <td><input type="text" class="inputBox" name="physicalCard" size="20"/></td>
     </tr>
     <tr>
-      <td><div>${uiLabelMap.AccountingPINNumber}</div></td>
-      <td><input type="text" class="inputBox" name="physicalPin" size="20" /></td>
+      <td>
+        <div>${uiLabelMap.AccountingPINNumber}</div>
+      </td>
+      <td><input type="text" class="inputBox" name="physicalPin" size="20"/></td>
     </tr>
     <tr>
       <td colspan="2">&nbsp;</td>
@@ -50,19 +54,24 @@
       </td>
     </tr>
     <tr>
-      <td><div>${uiLabelMap.AccountingCardNumber}</div></td>
-      <td><input type="text" class="inputBox" name="virtualCard" size="20" /></td>
+      <td>
+        <div>${uiLabelMap.AccountingCardNumber}</div>
+      </td>
+      <td><input type="text" class="inputBox" name="virtualCard" size="20"/></td>
     </tr>
     <tr>
-      <td><div>${uiLabelMap.AccountingPINNumber}</div></td>
-      <td><input type="text" class="inputBox" name="virtualPin" size="20" /></td>
+      <td>
+        <div>${uiLabelMap.AccountingPINNumber}</div>
+      </td>
+      <td><input type="text" class="inputBox" name="virtualPin" size="20"/></td>
     </tr>
     <tr>
       <td colspan="2">&nbsp;</td>
     </tr>
     <tr>
-      <td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceLinkCards}" /></td>
+      <td colspan="2" align="center"><input type="submit" class="smallSubmit" value="${uiLabelMap.EcommerceLinkCards}"/>
+      </td>
     </tr>
   </table>
 </form>
-<br />
+<br/>
Index: specialpurpose/ecommerce/template/customer/MessageDetail.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/MessageDetail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/MessageDetail.ftl	(working copy)
@@ -19,48 +19,72 @@
 
 <#assign delegator = requestAttributes.delegator>
 <#if communicationEvent.partyIdFrom??>
-    <#assign fromName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
+  <#assign fromName =
+      Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
 </#if>
 <#if communicationEvent.partyIdTo??>
-    <#assign toName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
+  <#assign toName =
+      Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
 </#if>
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="boxlink">
-            <#if (communicationEvent.partyIdFrom! != (userLogin.partyId)!)>
-              <a href="<@ofbizUrl>newmessage?communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>" class="submenutext">${uiLabelMap.PartyReply}</a>
-            </#if>
-            <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
-        </div>
-        <div class="h3">${uiLabelMap.EcommerceReadMessage}</div>
+  <div class="screenlet-title-bar">
+    <div class="boxlink">
+    <#if (communicationEvent.partyIdFrom! != (userLogin.partyId)!)>
+      <a href="<@ofbizUrl>newmessage?communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>"
+          class="submenutext">${uiLabelMap.PartyReply}
+      </a>
+    </#if>
+      <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
     </div>
-    <div class="screenlet-body">
-        <table width="100%" border="0" cellpadding="1">
-          <tr><td>&nbsp;</td></tr>
-          <tr>
-              <td align="right"><div class="tableheadtext">${uiLabelMap.CommonFrom}:</div></td>
-              <td><div>${fromName!}</div></td>
-          </tr>
-          <tr>
-              <td align="right"><div class="tableheadtext">${uiLabelMap.CommonTo}:</div></td>
-              <td><div>${toName!}</div></td>
-          </tr>
-          <tr>
-              <td align="right"><div class="tableheadtext">${uiLabelMap.CommonDate}:</div></td>
-              <td><div>${communicationEvent.entryDate}</div></td>
-          </tr>
-          <tr>
-              <td align="right"><div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div></td>
-              <td><div>&nbsp;${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}</div></td>
-          </tr>
-          <tr><td>&nbsp;</td></tr>
-          <tr>
-            <td>&nbsp;</td>
-            <td>
-              <div>${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}</div>
-            </td>
-          </tr>
-        </table>
-    </div>
+    <div class="h3">${uiLabelMap.EcommerceReadMessage}</div>
+  </div>
+  <div class="screenlet-body">
+    <table width="100%" border="0" cellpadding="1">
+      <tr>
+        <td>&nbsp;</td>
+      </tr>
+      <tr>
+        <td align="right">
+          <div class="tableheadtext">${uiLabelMap.CommonFrom}:</div>
+        </td>
+        <td>
+          <div>${fromName!}</div>
+        </td>
+      </tr>
+      <tr>
+        <td align="right">
+          <div class="tableheadtext">${uiLabelMap.CommonTo}:</div>
+        </td>
+        <td>
+          <div>${toName!}</div>
+        </td>
+      </tr>
+      <tr>
+        <td align="right">
+          <div class="tableheadtext">${uiLabelMap.CommonDate}:</div>
+        </td>
+        <td>
+          <div>${communicationEvent.entryDate}</div>
+        </td>
+      </tr>
+      <tr>
+        <td align="right">
+          <div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div>
+        </td>
+        <td>
+          <div>&nbsp;${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}</div>
+        </td>
+      </tr>
+      <tr>
+        <td>&nbsp;</td>
+      </tr>
+      <tr>
+        <td>&nbsp;</td>
+        <td>
+          <div>${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}</div>
+        </td>
+      </tr>
+    </table>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/MessageList.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/MessageList.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/MessageList.ftl	(working copy)
@@ -19,67 +19,97 @@
 
 <#macro showMessage communicationEvent isSentMessage index>
   <#if communicationEvent.partyIdFrom?has_content>
-    <#assign partyNameFrom = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
+    <#assign partyNameFrom =
+        Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)>
   <#else>
     <#assign partyNameFrom = "${uiLabelMap.CommonNA}">
   </#if>
   <#if communicationEvent.partyIdTo?has_content>
-    <#assign partyNameTo = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
+    <#assign partyNameTo =
+        Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
   <#else>
     <#assign partyNameTo = "${uiLabelMap.CommonNA}">
   </#if>
-              <tr>
-                <td><div>${partyNameFrom}</div></td>
-                <td><div>${partyNameTo}</div></td>
-                <td><div>${communicationEvent.subject?default("")}</div></td>
-                <td><div>${communicationEvent.entryDate}</div></td>
-                <td align="right">
-                  <form method="post" action="<@ofbizUrl>readmessage</@ofbizUrl>" name="ecomm_read_mess${index}">
-                    <input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
-                  </form>
-                  <a href="javascript:document.ecomm_read_mess${index}.submit()">${uiLabelMap.EcommerceRead}</a>
-                  
-                  <#if isSentMessage>
-                  <form method="post" action="<@ofbizUrl>newmessage</@ofbizUrl>" name="ecomm_sent_mess${index}">
-                    <input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
-                  </form>
-                  <a href="javascript:document.ecomm_sent_mess${index}.submit()">${uiLabelMap.PartyReply}</a>
-                  </#if>
-                </td>
-              </tr>
+  <tr>
+    <td>
+      <div>${partyNameFrom}</div>
+    </td>
+    <td>
+      <div>${partyNameTo}</div>
+    </td>
+    <td>
+      <div>${communicationEvent.subject?default("")}</div>
+    </td>
+    <td>
+      <div>${communicationEvent.entryDate}</div>
+    </td>
+    <td align="right">
+      <form method="post" action="<@ofbizUrl>readmessage</@ofbizUrl>" name="ecomm_read_mess${index}">
+        <input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
+      </form>
+      <a href="javascript:document.ecomm_read_mess${index}.submit()">${uiLabelMap.EcommerceRead}</a>
+      <#if isSentMessage>
+        <form method="post" action="<@ofbizUrl>newmessage</@ofbizUrl>" name="ecomm_sent_mess${index}">
+          <input name="communicationEventId" value="${communicationEvent.communicationEventId}" type="hidden"/>
+        </form>
+        <a href="javascript:document.ecomm_sent_mess${index}.submit()">${uiLabelMap.PartyReply}</a>
+      </#if>
+    </td>
+  </tr>
 </#macro>
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="boxlink">
-            <#if parameters.showSent! == "true">
-              <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewReceivedOnly}</a>
-            <#else>
-              <a href="<@ofbizUrl>messagelist?showSent=true</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewSent}</a>
-            </#if>
-        </div>
-        <div class="h3">${uiLabelMap.CommonMessages}</div>
+  <div class="screenlet-title-bar">
+    <div class="boxlink">
+      <#if parameters.showSent! == "true">
+        <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">
+          ${uiLabelMap.EcommerceViewReceivedOnly}
+        </a>
+      <#else>
+        <a href="<@ofbizUrl>messagelist?showSent=true</@ofbizUrl>" class="submenutextright">
+          ${uiLabelMap.EcommerceViewSent}
+        </a>
+      </#if>
     </div>
-    <div class="screenlet-body">
-        <table width="100%" border="0" cellpadding="1">
-          <#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)>
-            <tr><td><div>${uiLabelMap.EcommerceNoMessages}.</div></td></tr>
-          <#else>
-            <tr>
-              <td><div class="tableheadtext">${uiLabelMap.CommonFrom}</div></td>
-              <td><div class="tableheadtext">${uiLabelMap.CommonTo}</div></td>
-              <td><div class="tableheadtext">${uiLabelMap.EcommerceSubject}</div></td>
-              <td><div class="tableheadtext">${uiLabelMap.EcommerceSentDate}</div></td>
-              <td>&nbsp;</td>
-            </tr>
-            <tr><td colspan="5"><hr /></td></tr>
-            <#list receivedCommunicationEvents! as receivedCommunicationEvent>
-              <@showMessage communicationEvent=receivedCommunicationEvent isSentMessage=false index=receivedCommunicationEvent_index/>
-            </#list>
-            <#list sentCommunicationEvents! as sentCommunicationEvent>
-              <@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/>
-            </#list>
-          </#if>
-        </table>
-    </div>
+    <div class="h3">${uiLabelMap.CommonMessages}</div>
+  </div>
+  <div class="screenlet-body">
+    <table width="100%" border="0" cellpadding="1">
+    <#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)>
+      <tr>
+        <td>
+          <div>${uiLabelMap.EcommerceNoMessages}.</div>
+        </td>
+      </tr>
+    <#else>
+      <tr>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.CommonFrom}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.CommonTo}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.EcommerceSubject}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.EcommerceSentDate}</div>
+        </td>
+        <td>&nbsp;</td>
+      </tr>
+      <tr>
+        <td colspan="5">
+          <hr/>
+        </td>
+      </tr>
+      <#list receivedCommunicationEvents! as receivedCommunicationEvent>
+        <@showMessage communicationEvent=receivedCommunicationEvent
+            isSentMessage=false index=receivedCommunicationEvent_index/>
+      </#list>
+      <#list sentCommunicationEvents! as sentCommunicationEvent>
+        <@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/>
+      </#list>
+    </#if>
+    </table>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/MiniSignUpForContactList.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/MiniSignUpForContactList.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/MiniSignUpForContactList.ftl	(working copy)
@@ -22,24 +22,26 @@
   <select name="contactListId" class="selectBox" style="width:134px">
     <#list publicEmailContactLists as publicEmailContactList>
       <#assign publicContactMechType = publicEmailContactList.contactList.getRelatedOne("ContactMechType", true)!>
-        <option value="${publicEmailContactList.contactList.contactListId}">${publicEmailContactList.contactListType.description!} - ${publicEmailContactList.contactList.contactListName!}</option>
+      <option value="${publicEmailContactList.contactList.contactListId}">
+        ${publicEmailContactList.contactListType.description!}- ${publicEmailContactList.contactList.contactListName!}
+      </option>
     </#list>
   </select>
 </#macro>
 
 <script type="text/javascript" language="JavaScript">
-    function unsubscribe() {
-        var form = document.getElementById("signUpForContactListForm");
-        form.action = "<@ofbizUrl>unsubscribeContactListParty</@ofbizUrl>"
-        document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
-        form.submit();
-    }
-    function unsubscribeByContactMech() {
-        var form = document.getElementById("signUpForContactListForm");
-        form.action = "<@ofbizUrl>unsubscribeContactListPartyContachMech</@ofbizUrl>"
-        document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
-        form.submit();
-    }
+  function unsubscribe() {
+    var form = document.getElementById("signUpForContactListForm");
+    form.action = "<@ofbizUrl>unsubscribeContactListParty</@ofbizUrl>"
+    document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
+    form.submit();
+  }
+  function unsubscribeByContactMech() {
+    var form = document.getElementById("signUpForContactListForm");
+    form.action = "<@ofbizUrl>unsubscribeContactListPartyContachMech</@ofbizUrl>"
+    document.getElementById("statusId").value = "CLPT_UNSUBS_PENDING";
+    form.submit();
+  }
 </script>
 
 <div id="miniSignUpForContactList" class="screenlet">
@@ -54,7 +56,8 @@
   <#-- The visitor potentially has an account and party id -->
     <#if userLogin?has_content && userLogin.userLoginId != "anonymous">
     <#-- They are logged in so lets present the form to sign up with their email address -->
-      <form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="signUpForContactListForm" id="signUpForContactListForm">
+      <form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="signUpForContactListForm"
+          id="signUpForContactListForm">
         <fieldset>
           <#assign contextPath = request.getContextPath()>
           <input type="hidden" name="baseLocation" value="${contextPath}"/>
@@ -68,13 +71,25 @@
             <label for="preferredContactMechId">${uiLabelMap.CommonEmail} *</label>
             <select id="preferredContactMechId" name="preferredContactMechId" class="selectBox">
               <#list partyAndContactMechList as partyAndContactMech>
-                <option value="${partyAndContactMech.contactMechId}"><#if partyAndContactMech.infoString?has_content>${partyAndContactMech.infoString}<#elseif partyAndContactMech.tnContactNumber?has_content>${partyAndContactMech.tnCountryCode!}-${partyAndContactMech.tnAreaCode!}-${partyAndContactMech.tnContactNumber}<#elseif partyAndContactMech.paAddress1?has_content>${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2!}, ${partyAndContactMech.paCity!}, ${partyAndContactMech.paStateProvinceGeoId!}, ${partyAndContactMech.paPostalCode!}, ${partyAndContactMech.paPostalCodeExt!} ${partyAndContactMech.paCountryGeoId!}</#if></option>
+                <option value="${partyAndContactMech.contactMechId}">
+                  <#if partyAndContactMech.infoString?has_content>
+                    ${partyAndContactMech.infoString}
+                  <#elseif partyAndContactMech.tnContactNumber?has_content>
+                    ${partyAndContactMech.tnCountryCode!}-${partyAndContactMech.tnAreaCode!}
+                    -${partyAndContactMech.tnContactNumber}
+                  <#elseif partyAndContactMech.paAddress1?has_content>
+                  ${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2!}, ${partyAndContactMech.paCity!}
+                  , ${partyAndContactMech.paStateProvinceGeoId!}, ${partyAndContactMech.paPostalCode!}
+                  , ${partyAndContactMech.paPostalCodeExt!} ${partyAndContactMech.paCountryGeoId!}
+                  </#if>
+                </option>
               </#list>
             </select>
           </div>
           <div>
             <input type="submit" value="${uiLabelMap.EcommerceSubscribe}"/>
-            <input type="button" value="${uiLabelMap.EcommerceUnsubscribe}" onclick="javascript:unsubscribeByContactMech();"/>
+            <input type="button" value="${uiLabelMap.EcommerceUnsubscribe}"
+                onclick="javascript:unsubscribeByContactMech();"/>
           </div>
         </fieldset>
       </form>
@@ -81,12 +96,15 @@
     <#else>
     <#-- Not logged in so ask them to log in and then sign up or clear the user association -->
       <p>${uiLabelMap.EcommerceSignUpForContactListLogIn}</p>
-      <p><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a> ${sessionAttributes.autoName}</p>
+      <p>
+        <a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a> ${sessionAttributes.autoName}
+      </p>
       <p>(${uiLabelMap.CommonNotYou}? <a href="<@ofbizUrl>autoLogout</@ofbizUrl>">${uiLabelMap.CommonClickHere}</a>)</p>
     </#if>
   <#else>
   <#-- There is no party info so just offer an anonymous (non-partyId) related newsletter sign up -->
-    <form method="post" action="<@ofbizUrl>signUpForContactList</@ofbizUrl>" name="signUpForContactListForm" id="signUpForContactListForm">
+    <form method="post" action="<@ofbizUrl>signUpForContactList</@ofbizUrl>" name="signUpForContactListForm"
+        id="signUpForContactListForm">
       <fieldset>
         <#assign contextPath = request.getContextPath()>
         <input type="hidden" name="baseLocation" value="${contextPath}"/>
Index: specialpurpose/ecommerce/template/customer/NewCustomer.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/NewCustomer.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/NewCustomer.ftl	(working copy)
@@ -20,46 +20,46 @@
 <#if getUsername>
 <script type="text/javascript">
   //<![CDATA[
-     lastFocusedName = null;
-     function setLastFocused(formElement) {
-         lastFocusedName = formElement.name;
-         document.write.lastFocusedName;
-     }
-     function clickUsername() {
-         if (document.getElementById('UNUSEEMAIL').checked) {
-             if (lastFocusedName == "UNUSEEMAIL") {
-                 jQuery('#PASSWORD').focus();
-             } else if (lastFocusedName == "PASSWORD") {
-                 jQuery('#UNUSEEMAIL').focus();
-             } else {
-                 jQuery('#PASSWORD').focus();
-             }
-         }
-     }
-     function changeEmail() {
-         if (document.getElementById('UNUSEEMAIL').checked) {
-             document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
-         }
-     }
-     function setEmailUsername() {
-         if (document.getElementById('UNUSEEMAIL').checked) {
-             document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
-             // don't disable, make the browser not submit the field: document.getElementById('USERNAME').disabled=true;
-         } else {
-             document.getElementById('USERNAME').value='';
-             // document.getElementById('USERNAME').disabled=false;
-         }
-     }
-     function hideShowUsaStates() {
-         var customerStateElement = document.getElementById('newuserform_stateProvinceGeoId');
-          var customerCountryElement = document.getElementById('newuserform_countryGeoId');
-         if (customerCountryElement.value == "USA" || customerCountryElement.value == "UMI") {
-             customerStateElement.style.display = "block";
-         } else {
-             customerStateElement.style.display = "none";
-         }
-     }
-   //]]>
+  lastFocusedName = null;
+  function setLastFocused(formElement) {
+    lastFocusedName = formElement.name;
+    document.write.lastFocusedName;
+  }
+  function clickUsername() {
+    if (document.getElementById('UNUSEEMAIL').checked) {
+      if (lastFocusedName == "UNUSEEMAIL") {
+        jQuery('#PASSWORD').focus();
+      } else if (lastFocusedName == "PASSWORD") {
+        jQuery('#UNUSEEMAIL').focus();
+      } else {
+        jQuery('#PASSWORD').focus();
+      }
+    }
+  }
+  function changeEmail() {
+    if (document.getElementById('UNUSEEMAIL').checked) {
+      document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
+    }
+  }
+  function setEmailUsername() {
+    if (document.getElementById('UNUSEEMAIL').checked) {
+      document.getElementById('USERNAME').value = jQuery('#CUSTOMER_EMAIL').val();
+      // don't disable, make the browser not submit the field: document.getElementById('USERNAME').disabled=true;
+    } else {
+      document.getElementById('USERNAME').value = '';
+      // document.getElementById('USERNAME').disabled=false;
+    }
+  }
+  function hideShowUsaStates() {
+    var customerStateElement = document.getElementById('newuserform_stateProvinceGeoId');
+    var customerCountryElement = document.getElementById('newuserform_countryGeoId');
+    if (customerCountryElement.value == "USA" || customerCountryElement.value == "UMI") {
+      customerStateElement.style.display = "block";
+    } else {
+      customerStateElement.style.display = "none";
+    }
+  }
+  //]]>
 </script>
 </#if>
 
@@ -71,83 +71,87 @@
 
 <h2>${uiLabelMap.PartyRequestNewAccount}
   <span>
-    ${uiLabelMap.PartyAlreadyHaveAccount}, <a href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a>
+    ${uiLabelMap.PartyAlreadyHaveAccount}, <a
+        href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a>
   </span>
 </h2>
 
 <#macro fieldErrors fieldName>
   <#if errorMessageList?has_content>
-    <#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)>
-    <ul>
-      <#list fieldMessages as errorMsg>
-        <li class="errorMessage">${errorMsg}</li>
-      </#list>
-    </ul>
+    <#assign fieldMessages =
+        Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)>
+  <ul>
+    <#list fieldMessages as errorMsg>
+      <li class="errorMessage">${errorMsg}</li>
+    </#list>
+  </ul>
   </#if>
 </#macro>
 <#macro fieldErrorsMulti fieldName1 fieldName2 fieldName3 fieldName4>
   <#if errorMessageList?has_content>
-    <#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2, fieldName3, fieldName4, true, errorMessageList)>
-    <ul>
-      <#list fieldMessages as errorMsg>
-        <li class="errorMessage">${errorMsg}</li>
-      </#list>
-    </ul>
+    <#assign fieldMessages =
+        Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2,
+        fieldName3, fieldName4, true, errorMessageList)>
+  <ul>
+    <#list fieldMessages as errorMsg>
+      <li class="errorMessage">${errorMsg}</li>
+    </#list>
+  </ul>
   </#if>
 </#macro>
 
-  &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
-  &nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
+&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
+&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
 
 <form method="post" action="<@ofbizUrl>createcustomer${previousParams}</@ofbizUrl>" id="newuserform" name="newuserform">
-  
-  
-  <#----------------------------------------------------------------------
-  If you need to include a brief explanation of the form, or certain 
-  elements in the form (such as explaining asterisks denote REQUIRED),
-  then you should use a <p></p> tag with a class name of "desc"
-  ----------------------------------------------------------------------->
 
+
+<#----------------------------------------------------------------------
+If you need to include a brief explanation of the form, or certain
+elements in the form (such as explaining asterisks denote REQUIRED),
+then you should use a <p></p> tag with a class name of "desc"
+----------------------------------------------------------------------->
+
   <p class="desc">${uiLabelMap.CommonFieldsMarkedAreRequired}</p>
 
-  <#----------------------------------------------------------------------
-  There are two types of fieldsets, regular (full width) fielsets, and
-  column (half width) fieldsets. If you want to group two sets of inputs
-  side by side in two columns, give each fieldset a class name of "col"
-  ----------------------------------------------------------------------->
+<#----------------------------------------------------------------------
+There are two types of fieldsets, regular (full width) fielsets, and
+column (half width) fieldsets. If you want to group two sets of inputs
+side by side in two columns, give each fieldset a class name of "col"
+----------------------------------------------------------------------->
 
   <fieldset class="col">
     <legend>${uiLabelMap.PartyFullName}</legend>
     <input type="hidden" name="emailProductStoreId" value="${productStoreId}"/>
-    <#----------------------------------------------------------------------
-    Each input row should be enclosed in a <div></div>. 
-    This will ensure than each input field clears the one
-    above it. Alternately, if you want several inputs to float next to
-    each other, you can enclose them in a table as illustrated below for
-    the phone numbers, or you can enclose each label/input pair in a span
+  <#----------------------------------------------------------------------
+  Each input row should be enclosed in a <div></div>.
+  This will ensure than each input field clears the one
+  above it. Alternately, if you want several inputs to float next to
+  each other, you can enclose them in a table as illustrated below for
+  the phone numbers, or you can enclose each label/input pair in a span
 
-    Example:
+  Example:
+  <div>
+    <span>
+      <input type="text" name="expMonth" value=""/>
+      <label for="expMonth">Exp. Month</label>
+    </span>
+    <span>
+      <input type="text" name="expYear" value=""/>
+      <label for="expYear">Exp. Year</label>
+    </span>
+  </div>
+  ----------------------------------------------------------------------->
     <div>
-      <span>
-        <input type="text" name="expMonth" value=""/>
-        <label for="expMonth">Exp. Month</label>
-      </span>
-      <span>
-        <input type="text" name="expYear" value=""/>
-        <label for="expYear">Exp. Year</label>
-      </span>
-    </div>
-    ----------------------------------------------------------------------->
-    <div>
       <label for="USER_TITLE">${uiLabelMap.CommonTitle}</label>
-      <@fieldErrors fieldName="USER_TITLE"/>
+    <@fieldErrors fieldName="USER_TITLE"/>
       <select name="USER_TITLE" id="USER_TITLE">
-        <#if requestParameters.USER_TITLE?has_content >
-          <option>${requestParameters.USER_TITLE}</option>
-          <option value="${requestParameters.USER_TITLE}"> -- </option>
-        <#else>
-          <option value="">${uiLabelMap.CommonSelectOne}</option>
-        </#if>
+      <#if requestParameters.USER_TITLE?has_content >
+        <option>${requestParameters.USER_TITLE}</option>
+        <option value="${requestParameters.USER_TITLE}"> --</option>
+      <#else>
+        <option value="">${uiLabelMap.CommonSelectOne}</option>
+      </#if>
         <option>${uiLabelMap.CommonTitleMr}</option>
         <option>${uiLabelMap.CommonTitleMrs}</option>
         <option>${uiLabelMap.CommonTitleMs}</option>
@@ -157,26 +161,27 @@
 
     <div>
       <label for="USER_FIRST_NAME">${uiLabelMap.PartyFirstName}*</label>
-      <@fieldErrors fieldName="USER_FIRST_NAME"/>
-      <input type="text" name="USER_FIRST_NAME" id="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME!}" />
+    <@fieldErrors fieldName="USER_FIRST_NAME"/>
+      <input type="text" name="USER_FIRST_NAME" id="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME!}"/>
     </div>
 
     <div>
       <label for="USER_MIDDLE_NAME">${uiLabelMap.PartyMiddleInitial}</label>
-      <@fieldErrors fieldName="USER_MIDDLE_NAME"/>
-      <input type="text" name="USER_MIDDLE_NAME" id="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME!}" />
+    <@fieldErrors fieldName="USER_MIDDLE_NAME"/>
+      <input type="text" name="USER_MIDDLE_NAME" id="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME!}"/>
     </div>
 
     <div>
       <label for="USER_LAST_NAME">${uiLabelMap.PartyLastName}*</label>
-      <@fieldErrors fieldName="USER_LAST_NAME"/>
-      <input type="text" name="USER_LAST_NAME" id="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME!}" />
+    <@fieldErrors fieldName="USER_LAST_NAME"/>
+      <input type="text" name="USER_LAST_NAME" id="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME!}"/>
     </div>
 
     <div>
       <label for="USER_SUFFIX">${uiLabelMap.PartySuffix}</label>
-      <@fieldErrors fieldName="USER_SUFFIX"/>
-      <input type="text" class='inputBox' name="USER_SUFFIX" id="USER_SUFFIX" value="${requestParameters.USER_SUFFIX!}" />
+    <@fieldErrors fieldName="USER_SUFFIX"/>
+      <input type="text" class='inputBox' name="USER_SUFFIX" id="USER_SUFFIX"
+             value="${requestParameters.USER_SUFFIX!}"/>
     </div>
 
   </fieldset>
@@ -185,64 +190,69 @@
     <legend>${uiLabelMap.PartyShippingAddress}</legend>
     <div>
       <label for="CUSTOMER_ADDRESS1">${uiLabelMap.PartyAddressLine1}*</label>
-      <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/>
-      <input type="text" name="CUSTOMER_ADDRESS1" id="CUSTOMER_ADDRESS1" value="${requestParameters.CUSTOMER_ADDRESS1!}" />
+    <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/>
+      <input type="text" name="CUSTOMER_ADDRESS1" id="CUSTOMER_ADDRESS1"
+          value="${requestParameters.CUSTOMER_ADDRESS1!}"/>
     </div>
-
     <div>
       <label for="CUSTOMER_ADDRESS2">${uiLabelMap.PartyAddressLine2}</label>
-      <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/>
-      <input type="text" name="CUSTOMER_ADDRESS2" id="CUSTOMER_ADDRESS2" value="${requestParameters.CUSTOMER_ADDRESS2!}" />
+    <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/>
+      <input type="text" name="CUSTOMER_ADDRESS2" id="CUSTOMER_ADDRESS2"
+          value="${requestParameters.CUSTOMER_ADDRESS2!}"/>
     </div>
-
     <div>
       <label for="CUSTOMER_CITY">${uiLabelMap.PartyCity}*</label>
-      <@fieldErrors fieldName="CUSTOMER_CITY"/>
-      <input type="text" name="CUSTOMER_CITY" id="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY!}" />
+    <@fieldErrors fieldName="CUSTOMER_CITY"/>
+      <input type="text" name="CUSTOMER_CITY" id="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY!}"/>
     </div>
-
     <div>
       <label for="CUSTOMER_POSTAL_CODE">${uiLabelMap.PartyZipCode}*</label>
-      <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/>
-      <input type="text" name="CUSTOMER_POSTAL_CODE" id="CUSTOMER_POSTAL_CODE" value="${requestParameters.CUSTOMER_POSTAL_CODE!}" />
+     <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/>
+      <input type="text" name="CUSTOMER_POSTAL_CODE" id="CUSTOMER_POSTAL_CODE"
+          value="${requestParameters.CUSTOMER_POSTAL_CODE!}"/>
     </div>
-  
     <div>
-        <label for="customerCountry">${uiLabelMap.CommonCountry}*</label>
-        <@fieldErrors fieldName="CUSTOMER_COUNTRY"/>
-        <select name="CUSTOMER_COUNTRY" id="newuserform_countryGeoId">
-            ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-            <#assign defaultCountryGeoId = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "country.geo.id.default", delegator)>
-            <option selected="selected" value="${defaultCountryGeoId}">
-                <#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId",defaultCountryGeoId), false)>
-                ${countryGeo.get("geoName",locale)}
-            </option>
-        </select>
-    <div/>
-    
+      <label for="customerCountry">${uiLabelMap.CommonCountry}*</label>
+      <@fieldErrors fieldName="CUSTOMER_COUNTRY"/>
+      <select name="CUSTOMER_COUNTRY" id="newuserform_countryGeoId">
+        ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+        <#assign defaultCountryGeoId =
+            Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general",
+            "country.geo.id.default", delegator)>
+        <option selected="selected" value="${defaultCountryGeoId}">
+          <#assign countryGeo = delegator.findOne("Geo",Static["org.apache.ofbiz.base.util.UtilMisc"]
+              .toMap("geoId",defaultCountryGeoId), false)>
+          ${countryGeo.get("geoName",locale)}
+        </option>
+      </select>
+    </div>
     <div>
-        <label for="customerState">${uiLabelMap.PartyState}*</label>
-        <@fieldErrors fieldName="CUSTOMER_STATE"/>
-        <select name="CUSTOMER_STATE" id="newuserform_stateProvinceGeoId"></select>
+      <label for="customerState">${uiLabelMap.PartyState}*</label>
+      <@fieldErrors fieldName="CUSTOMER_STATE"/>
+      <select name="CUSTOMER_STATE" id="newuserform_stateProvinceGeoId"></select>
     <div/>
-
     <div>
       <label for="CUSTOMER_ADDRESS_ALLOW_SOL">${uiLabelMap.PartyAllowAddressSolicitation}</label>
       <@fieldErrors fieldName="CUSTOMER_ADDRESS_ALLOW_SOL"/>
       <select name="CUSTOMER_ADDRESS_ALLOW_SOL" id="CUSTOMER_ADDRESS_ALLOW_SOL">
-        <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-        <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+        <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")>
+          <option value="Y">${uiLabelMap.CommonY}</option>
+        </#if>
+        <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")>
+          <option value="N">${uiLabelMap.CommonN}</option>
+        </#if>
         <option></option>
         <option value="Y">${uiLabelMap.CommonY}</option>
         <option value="N">${uiLabelMap.CommonN}</option>
       </select>
     </div>
-
   </fieldset>
 
   <fieldset>
     <legend>${uiLabelMap.PartyPhoneNumbers}</legend>
-    <table summary="Tabular form for entering multiple telecom numbers for different purposes. Each row allows user to enter telecom number for a purpose">
+    <table
+        summary="Tabular form for entering multiple telecom numbers for different purposes.
+        Each row allows user to enter telecom number for a purpose">
       <thead>
         <tr>
           <th></th>
@@ -256,14 +266,24 @@
       <tbody>
         <tr>
           <th scope="row">${uiLabelMap.PartyHomePhone}</th>
-          <td><input type="text" name="CUSTOMER_HOME_COUNTRY" size="5" value="${requestParameters.CUSTOMER_HOME_COUNTRY!}" /></td>
-          <td><input type="text" name="CUSTOMER_HOME_AREA" size="5" value="${requestParameters.CUSTOMER_HOME_AREA!}" /></td>
-          <td><input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT!}" /></td>
-          <td><input type="text" name="CUSTOMER_HOME_EXT" size="6" value="${requestParameters.CUSTOMER_HOME_EXT!}"/></td>
           <td>
+            <input type="text" name="CUSTOMER_HOME_COUNTRY" size="5" value="${requestParameters.CUSTOMER_HOME_COUNTRY!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_HOME_AREA" size="5" value="${requestParameters.CUSTOMER_HOME_AREA!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT!}"/></td>
+          <td>
+            <input type="text" name="CUSTOMER_HOME_EXT" size="6" value="${requestParameters.CUSTOMER_HOME_EXT!}"/>
+          </td>
+          <td>
             <select name="CUSTOMER_HOME_ALLOW_SOL">
-              <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-              <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+              <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")>
+                <option value="Y">${uiLabelMap.CommonY}</option></#if>
+              <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")>
+                <option value="N">${uiLabelMap.CommonN}</option>
+              </#if>
               <option></option>
               <option value="Y">${uiLabelMap.CommonY}</option>
               <option value="N">${uiLabelMap.CommonN}</option>
@@ -272,14 +292,24 @@
         </tr>
         <tr>
           <th scope="row">${uiLabelMap.PartyBusinessPhone}</th>
-          <td><input type="text" name="CUSTOMER_WORK_COUNTRY" size="5" value="${requestParameters.CUSTOMER_WORK_COUNTRY!}" /></td>
-          <td><input type="text" name="CUSTOMER_WORK_AREA" size="5" value="${requestParameters.CUSTOMER_WORK_AREA!}" /></td>
-          <td><input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT!}" /></td>
-          <td><input type="text" name="CUSTOMER_WORK_EXT" size="6" value="${requestParameters.CUSTOMER_WORK_EXT!}" /></td>
           <td>
+            <input type="text" name="CUSTOMER_WORK_COUNTRY" size="5" value="${requestParameters.CUSTOMER_WORK_COUNTRY!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_WORK_AREA" size="5" value="${requestParameters.CUSTOMER_WORK_AREA!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_WORK_EXT" size="6" value="${requestParameters.CUSTOMER_WORK_EXT!}"/>
+          </td>
+          <td>
             <select name="CUSTOMER_WORK_ALLOW_SOL">
-              <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-              <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+              <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")>
+                <option value="Y">${uiLabelMap.CommonY}</option></#if>
+              <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")>
+              <option value="N">${uiLabelMap.CommonN}</option></#if>
               <option></option>
               <option value="Y">${uiLabelMap.CommonY}</option>
               <option value="N">${uiLabelMap.CommonN}</option>
@@ -288,14 +318,22 @@
         </tr>
         <tr>
           <th scope="row">${uiLabelMap.PartyFaxNumber}</th>
-          <td><input type="text" name="CUSTOMER_FAX_COUNTRY" size="5" value="${requestParameters.CUSTOMER_FAX_COUNTRY!}" /></td>
-          <td><input type="text" name="CUSTOMER_FAX_AREA" size="5" value="${requestParameters.CUSTOMER_FAX_AREA!}" /></td>
-          <td><input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT!}" /></td>
+          <td>
+            <input type="text" name="CUSTOMER_FAX_COUNTRY" size="5" value="${requestParameters.CUSTOMER_FAX_COUNTRY!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_FAX_AREA" size="5" value="${requestParameters.CUSTOMER_FAX_AREA!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT!}"/>
+          </td>
           <td></td>
           <td>
             <select name="CUSTOMER_FAX_ALLOW_SOL">
-              <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-              <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+              <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")>
+                <option value="Y">${uiLabelMap.CommonY}</option></#if>
+              <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")>
+              <option value="N">${uiLabelMap.CommonN}</option></#if>
               <option></option>
               <option value="Y">${uiLabelMap.CommonY}</option>
               <option value="N">${uiLabelMap.CommonN}</option>
@@ -304,14 +342,23 @@
         </tr>
         <tr>
           <th scope="row">${uiLabelMap.PartyMobilePhone}</th>
-          <td><input type="text" name="CUSTOMER_MOBILE_COUNTRY" size="5" value="${requestParameters.CUSTOMER_MOBILE_COUNTRY!}" /></td>
-          <td><input type="text" name="CUSTOMER_MOBILE_AREA" size="5" value="${requestParameters.CUSTOMER_MOBILE_AREA!}" /></td>
-          <td><input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT!}" /></td>
+          <td>
+            <input type="text" name="CUSTOMER_MOBILE_COUNTRY" size="5"
+                value="${requestParameters.CUSTOMER_MOBILE_COUNTRY!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_MOBILE_AREA" size="5" value="${requestParameters.CUSTOMER_MOBILE_AREA!}"/>
+          </td>
+          <td>
+            <input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT!}"/>
+          </td>
           <td></td>
           <td>
             <select name="CUSTOMER_MOBILE_ALLOW_SOL">
-              <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-              <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+              <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")>
+                <option value="Y">${uiLabelMap.CommonY}</option></#if>
+              <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")>
+              <option value="N">${uiLabelMap.CommonN}</option></#if>
               <option></option>
               <option value="Y">${uiLabelMap.CommonY}</option>
               <option value="N">${uiLabelMap.CommonN}</option>
@@ -325,15 +372,18 @@
   <fieldset class="col">
     <legend>${uiLabelMap.PartyEmailAddress}</legend>
     <div>
-      <label for= "CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label>
+      <label for="CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label>
       <@fieldErrors fieldName="CUSTOMER_EMAIL"/>
-      <input type="text" name="CUSTOMER_EMAIL" id="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL!}" onchange="changeEmail()" onkeyup="changeEmail()" />
+      <input type="text" name="CUSTOMER_EMAIL" id="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL!}"
+          onchange="changeEmail()" onkeyup="changeEmail()"/>
     </div>
     <div>
       <label for="CUSTOMER_EMAIL_ALLOW_SOL">${uiLabelMap.PartyAllowSolicitation}</label>
       <select name="CUSTOMER_EMAIL_ALLOW_SOL" id="CUSTOMER_EMAIL_ALLOW_SOL">
-        <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-        <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+        <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")>
+          <option value="Y">${uiLabelMap.CommonY}</option></#if>
+        <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")>
+        <option value="N">${uiLabelMap.CommonN}</option></#if>
         <option></option>
         <option value="Y">${uiLabelMap.CommonY}</option>
         <option value="N">${uiLabelMap.CommonN}</option>
@@ -348,7 +398,8 @@
       <#if !requestParameters.preferredUsername?has_content>
         <div class="form-row inline">
           <label for="UNUSEEMAIL">
-            <input type="checkbox" class="checkbox" name="UNUSEEMAIL" id="UNUSEEMAIL" value="on" onclick="setEmailUsername();" onfocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress}
+            <input type="checkbox" class="checkbox" name="UNUSEEMAIL" id="UNUSEEMAIL" value="on"
+                onclick="setEmailUsername();" onfocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress}
           </label>
         </div>
       </#if>
@@ -356,10 +407,12 @@
       <div>
         <label for="USERNAME">${uiLabelMap.CommonUsername}*</label>
         <#if requestParameters.preferredUsername?has_content>
-            <input type="text" name="showUserName" id="showUserName" value="${requestParameters.USERNAME!}" disabled="disabled"/>
-            <input type="hidden" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"/>
+          <input type="text" name="showUserName" id="showUserName" value="${requestParameters.USERNAME!}"
+              disabled="disabled"/>
+          <input type="hidden" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"/>
         <#else>
-            <input type="text" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}" onfocus="clickUsername();" onchange="changeEmail();"/>
+          <input type="text" name="USERNAME" id="USERNAME" value="${requestParameters.USERNAME!}"
+              onfocus="clickUsername();" onchange="changeEmail();"/>
         </#if>
       </div>
     </#if>
@@ -383,7 +436,8 @@
       <div>
         <label for="PASSWORD_HINT">${uiLabelMap.PartyPasswordHint}</label>
         <@fieldErrors fieldName="PASSWORD_HINT"/>
-        <input type="text" class='inputBox' name="PASSWORD_HINT" id="PASSWORD_HINT" value="${requestParameters.PASSWORD_HINT!}" maxlength="100"/>
+        <input type="text" class='inputBox' name="PASSWORD_HINT" id="PASSWORD_HINT"
+            value="${requestParameters.PASSWORD_HINT!}" maxlength="100"/>
       </div>
     <#else>
       <div>
@@ -399,13 +453,13 @@
 class name of "button". No other class names should be used to style 
 button actions.
 ------------------------------------------------------------------------------->
-<div class="buttons">  
-  &nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
-  &nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>   
+<div class="buttons">&nbsp;
+  <a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>&nbsp;
+  <a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
 </div>
 
 <script type="text/javascript">
   //<![CDATA[
-      hideShowUsaStates();
+  hideShowUsaStates();
   //]]>
 </script>
Index: specialpurpose/ecommerce/template/customer/NewMsg.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/NewMsg.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/NewMsg.ftl	(working copy)
@@ -18,93 +18,109 @@
 -->
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="boxlink">
-            <#if showMessageLinks?default("false")?upper_case == "TRUE">
-                <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
-            </#if>
-        </div>
-        <div class="h3">${pageHeader}</div>
+  <div class="screenlet-title-bar">
+    <div class="boxlink">
+      <#if showMessageLinks?default("false")?upper_case == "TRUE">
+        <a href="<@ofbizUrl>messagelist</@ofbizUrl>" class="submenutextright">${uiLabelMap.EcommerceViewList}</a>
+      </#if>
     </div>
-    <div class="screenlet-body">
-      <form name="contactus" method="post" action="<@ofbizUrl>${submitRequest}</@ofbizUrl>" style="margin: 0;">
-        <input type="hidden" name="partyIdFrom" value="${userLogin.partyId}"/>
-        <input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
-        <input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
-        <#if productStore?has_content>
-          <input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
+    <div class="h3">${pageHeader}</div>
+  </div>
+  <div class="screenlet-body">
+    <form name="contactus" method="post" action="<@ofbizUrl>${submitRequest}</@ofbizUrl>" style="margin: 0;">
+      <input type="hidden" name="partyIdFrom" value="${userLogin.partyId}"/>
+      <input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
+      <input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
+      <#if productStore?has_content>
+        <input type="hidden" name="partyIdTo" value="${productStore.payToPartyId!}"/>
+      </#if>
+        <input type="hidden" name="note"
+               value="${Static["org.apache.ofbiz.base.util.UtilHttp"].getFullRequestUrl(request)}"/>
+      <#if message?has_content>
+        <input type="hidden" name="parentCommEventId" value="${communicationEvent.communicationEventId}"/>
+        <#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)>
+          <#assign orgComm = communicationEvent.origCommEventId>
+        <#else>
+          <#assign orgComm = communicationEvent.communicationEventId>
         </#if>
-        <input type="hidden" name="note" value="${Static["org.apache.ofbiz.base.util.UtilHttp"].getFullRequestUrl(request)}"/>
-        <#if message?has_content>
-          <input type="hidden" name="parentCommEventId" value="${communicationEvent.communicationEventId}"/>
-          <#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)>
-            <#assign orgComm = communicationEvent.origCommEventId>
-          <#else>
-            <#assign orgComm = communicationEvent.communicationEventId>
-          </#if>
-          <input type="hidden" name="origCommEventId" value="${orgComm}"/>
-        </#if>
-        <table width="100%" border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
+        <input type="hidden" name="origCommEventId" value="${orgComm}"/>
+      </#if>
+      <table width="100%" border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
+        <tr>
+          <td colspan="3">&nbsp;</td>
+        </tr>
+        <tr>
+          <td width="5">&nbsp;</td>
+          <td align="right">
+            <div class="tableheadtext">${uiLabelMap.CommonFrom}:</div>
+          </td>
+          <td>
+            <div>&nbsp;${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}?&nbsp;<a
+                href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonClickHere}</a>)
+            </div>
+          </td>
+        </tr>
+        <#if partyIdTo?has_content>
+          <#assign partyToName =
+              Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)>
+          <input type="hidden" name="partyIdTo" value="${partyIdTo}"/>
           <tr>
             <td colspan="3">&nbsp;</td>
           </tr>
           <tr>
             <td width="5">&nbsp;</td>
-            <td align="right"><div class="tableheadtext">${uiLabelMap.CommonFrom}:</div></td>
-            <td><div>&nbsp;${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}?&nbsp;<a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonClickHere}</a>)</div></td>
+            <td align="right">
+              <div class="tableheadtext">${uiLabelMap.CommonTo}:</div>
+            </td>
+            <td>
+              <div>&nbsp;${partyToName}</div>
+            </td>
           </tr>
-          <#if partyIdTo?has_content>
-            <#assign partyToName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)>
-            <input type="hidden" name="partyIdTo" value="${partyIdTo}"/>
-            <tr>
-              <td colspan="3">&nbsp;</td>
-            </tr>
-            <tr>
-              <td width="5">&nbsp;</td>
-              <td align="right"><div class="tableheadtext">${uiLabelMap.CommonTo}:</div></td>
-              <td><div>&nbsp;${partyToName}</div></td>
-            </tr>
-          </#if>
-          <tr>
-            <td colspan="3">&nbsp;</td>
-          </tr>
-          <#assign defaultSubject = (communicationEvent.subject)?default("")>
-          <#if (defaultSubject?length == 0)>
-            <#assign replyPrefix = "RE: ">
-            <#if parentEvent?has_content>
-              <#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)>
-                <#assign defaultSubject = replyPrefix>
-              </#if>
-              <#assign defaultSubject = defaultSubject + parentEvent.subject?default("")>
+        </#if>
+        <tr>
+          <td colspan="3">&nbsp;</td>
+        </tr>
+        <#assign defaultSubject = (communicationEvent.subject)?default("")>
+        <#if (defaultSubject?length == 0)>
+          <#assign replyPrefix = "RE: ">
+          <#if parentEvent?has_content>
+            <#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)>
+              <#assign defaultSubject = replyPrefix>
             </#if>
+            <#assign defaultSubject = defaultSubject + parentEvent.subject?default("")>
           </#if>
-          <tr>
-            <td width="5">&nbsp;</td>
-            <td align="right"><div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div></td>
-            <td><input type="input" class="inputBox" name="subject" size="20" value="${defaultSubject}"/>
-          </tr>
-          <tr>
-            <td colspan="3">&nbsp;</td>
-          </tr>
-          <tr>
-            <td width="5">&nbsp;</td>
-            <td align="right"><div class="tableheadtext">${uiLabelMap.CommonMessage}:</div></td>
-            <td>&nbsp;</td>
-          </tr>
-          <tr>
-            <td colspan="2">&nbsp;</td>
-            <td colspan="2">
-              <textarea name="content" class="textAreaBox" cols="40" rows="5"></textarea>
-            </td>
-          </tr>
-          <tr>
-            <td colspan="3">&nbsp;</td>
-          </tr>
-          <tr>
-            <td colspan="2">&nbsp;</td>
-            <td><input type="submit" class="smallSubmit" value="${uiLabelMap.CommonSend}"/></td>
-          </tr>
-        </table>
-      </form>
-    </div>
+        </#if>
+        <tr>
+          <td width="5">&nbsp;</td>
+          <td align="right">
+            <div class="tableheadtext">${uiLabelMap.EcommerceSubject}:</div>
+          </td>
+          <td><input type="input" class="inputBox" name="subject" size="20" value="${defaultSubject}"/>
+        </tr>
+        <tr>
+          <td colspan="3">&nbsp;</td>
+        </tr>
+        <tr>
+          <td width="5">&nbsp;</td>
+          <td align="right">
+            <div class="tableheadtext">${uiLabelMap.CommonMessage}:</div>
+          </td>
+          <td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td colspan="2">&nbsp;</td>
+          <td colspan="2">
+            <textarea name="content" class="textAreaBox" cols="40" rows="5"></textarea>
+          </td>
+        </tr>
+        <tr>
+          <td colspan="3">&nbsp;</td>
+        </tr>
+        <tr>
+          <td colspan="2">&nbsp;</td>
+          <td><input type="submit" class="smallSubmit" value="${uiLabelMap.CommonSend}"/></td>
+        </tr>
+      </table>
+    </form>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/customer/SerializedInventorySummary.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/SerializedInventorySummary.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/SerializedInventorySummary.ftl	(working copy)
@@ -18,45 +18,61 @@
 -->
 
 <div id="serialized-inventory-summary" class="screenlet">
-    <div class="screenlet-title-bar">
-        <span class="h3">${uiLabelMap.ProductSerializedInventorySummary}</span>
-    </div>
-    <div class="screenlet-body">
-        <table width="100%" cellspacing="0" cellpadding="2">
-            <thead>
-                <tr class="header-row">
-                    <td><div class="tableheadtext">${uiLabelMap.ProductInventoryItemId}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductProductName}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductSerialNumber}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductSoftIdentifier}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductActivationNumber}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</div></td>
-                </tr>
-            </thead>
-            <tbody>
-                <#list inventoryItemList as inventoryItem>
-                    <#assign product = inventoryItem.getRelatedOne('Product', false)!>
-                    <tr>
-                        <td>${inventoryItem.inventoryItemId}</td>
-                        <td>
-                            <#if product?has_content>
-                                <#if product.isVariant?default('N') == 'Y'>
-                                    <#assign product = Static['org.apache.ofbiz.product.product.ProductWorker'].getParentProduct(product.productId, delegator)!>
-                                </#if>
-                                <#if product?has_content>
-                                    <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
-                                    <a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">${productName?default(product.productId)}</a>
-                                </#if>
-                            </#if>
-                        </td>
-                        <td>${inventoryItem.serialNumber!}</td>
-                        <td>${inventoryItem.softIdentifier!}</td>
-                        <td>${inventoryItem.activationNumber!}</td>
-                        <td>${inventoryItem.activationValidThru!}</td>
-                    </tr>
-                </#list>
-            </tbody>
-        </table>
-    </div>
+  <div class="screenlet-title-bar">
+    <span class="h3">${uiLabelMap.ProductSerializedInventorySummary}</span>
+  </div>
+  <div class="screenlet-body">
+    <table width="100%" cellspacing="0" cellpadding="2">
+      <thead>
+        <tr class="header-row">
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductInventoryItemId}</div>
+          </td>
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductProductName}</div>
+          </td>
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductSerialNumber}</div>
+          </td>
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductSoftIdentifier}</div>
+          </td>
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductActivationNumber}</div>
+          </td>
+          <td>
+            <div class="tableheadtext">${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</div>
+          </td>
+        </tr>
+      </thead>
+      <tbody>
+        <#list inventoryItemList as inventoryItem>
+          <#assign product = inventoryItem.getRelatedOne('Product', false)!>
+          <tr>
+            <td>${inventoryItem.inventoryItemId}</td>
+            <td>
+              <#if product?has_content>
+                <#if product.isVariant?default('N') == 'Y'>
+                  <#assign product = Static['org.apache.ofbiz.product.product.ProductWorker']
+                      .getParentProduct(product.productId, delegator)!>
+                </#if>
+                <#if product?has_content>
+                  <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper']
+                      .getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
+                  <a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">
+                    ${productName?default(product.productId)}
+                  </a>
+                </#if>
+              </#if>
+            </td>
+            <td>${inventoryItem.serialNumber!}</td>
+            <td>${inventoryItem.softIdentifier!}</td>
+            <td>${inventoryItem.activationNumber!}</td>
+            <td>${inventoryItem.activationValidThru!}</td>
+          </tr>
+        </#list>
+      </tbody>
+    </table>
+  </div>
 </div>
 
Index: specialpurpose/ecommerce/template/customer/SubscriptionSummary.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/SubscriptionSummary.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/SubscriptionSummary.ftl	(working copy)
@@ -18,44 +18,63 @@
 -->
 
 <div id="subscription-summary" class="screenlet">
-    <div class="screenlet-title-bar">
-        <span class="h3">${uiLabelMap.ProductSubscriptions}</span>
-    </div>
-    <div class="screenlet-body">
-        <table width="100%" cellspacing="0" cellpadding="2">
-            <thead>
-                <tr class="header-row">
-                    <td><div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.CommonDescription}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.ProductProductName}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.CommonFromDate}</div></td>
-                    <td><div class="tableheadtext">${uiLabelMap.CommonThruDate}</div></td>
-                </tr>
-                <tr><td colspan="6"><hr /></td></tr>
-            </thead>
-            <tbody>
-                <#list subscriptionList as subscription>
-                    <tr>
-                        <td>${subscription.subscriptionId}</td>
-                        <td>
-                            <#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!>
+  <div class="screenlet-title-bar">
+    <span class="h3">${uiLabelMap.ProductSubscriptions}</span>
+  </div>
+  <div class="screenlet-body">
+    <table width="100%" cellspacing="0" cellpadding="2">
+      <thead>
+      <tr class="header-row">
+        <td>
+          <div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.CommonDescription}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.ProductProductName}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.CommonFromDate}</div>
+        </td>
+        <td>
+          <div class="tableheadtext">${uiLabelMap.CommonThruDate}</div>
+        </td>
+      </tr>
+      <tr>
+        <td colspan="6">
+          <hr/>
+        </td>
+      </tr>
+      </thead>
+      <tbody>
+      <#list subscriptionList as subscription>
+      <tr>
+        <td>${subscription.subscriptionId}</td>
+        <td>
+          <#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!>
                             ${(subscriptionType.description)?default(subscription.subscriptionTypeId?default('N/A'))}
-                        </td>
-                        <td>${subscription.description!}</td>
-                        <td>
-                            <#assign product = subscription.getRelatedOne('Product', false)!>
-                            <#if product?has_content>
-                                <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
-                                <a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">${productName?default(product.productId)}</a>
-                            </#if>
-                        </td>
-                        <td>${subscription.fromDate!}</td>
-                        <td>${subscription.thruDate!}</td>
-                    </tr>
-                </#list>
-            </tbody>
-        </table>
-    </div>
+        </td>
+        <td>${subscription.description!}</td>
+        <td>
+          <#assign product = subscription.getRelatedOne('Product', false)!>
+          <#if product?has_content>
+            <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper']
+                .getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!>
+            <a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>" class="linktext">
+              ${productName?default(product.productId)}
+            </a>
+          </#if>
+        </td>
+        <td>${subscription.fromDate!}</td>
+        <td>${subscription.thruDate!}</td>
+      </tr>
+      </#list>
+      </tbody>
+    </table>
+  </div>
 </div>
 
Index: specialpurpose/ecommerce/template/customer/profile/EditBillToAddress.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/EditBillToAddress.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/EditBillToAddress.ftl	(working copy)
@@ -20,28 +20,36 @@
 <div id="billToServerError" class="errorMessage"></div>
 <form id="editBillToPostalAddress" method="post" action="">
   <fieldset>
-    <input type="hidden" name="setBillingPurpose" value="Y" />
-    <input type="hidden" name="contactMechId" value="${billToContactMechId!}" />
+    <input type="hidden" name="setBillingPurpose" value="Y"/>
+    <input type="hidden" name="contactMechId" value="${billToContactMechId!}"/>
     <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-    <input type="hidden" name="productStoreId" value="${productStoreId!}" />
+    <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
     <div>
       <label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*</label>
-      <input type="text" class="required" name="address1" id="billToAddress1" value="${billToAddress1!}" maxlength="30" />
-      <span id="advice-required-billToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="address1" id="billToAddress1" value="${billToAddress1!}"
+          maxlength="30"/>
+      <span id="advice-required-billToAddress1" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div>
       <label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-      <input type="text" name="address2" id="billToAddress2" value="${billToAddress2!}" maxlength="30" />
+      <input type="text" name="address2" id="billToAddress2" value="${billToAddress2!}" maxlength="30"/>
     </div>
     <div>
       <label for="billToCity">${uiLabelMap.PartyCity}*</label>
-      <input type="text" class="required" name="city" id="billToCity" value="${billToCity!}" maxlength="30" />
-      <span id="advice-required-billToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="city" id="billToCity" value="${billToCity!}" maxlength="30"/>
+      <span id="advice-required-billToCity" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div>
       <label for="billToPostalCode">${uiLabelMap.PartyZipCode}*</label>
-      <input type="text" class="required" name="postalCode" id="billToPostalCode" value="${billToPostalCode!}" maxlength="10" />
-      <span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="postalCode" id="billToPostalCode" value="${billToPostalCode!}"
+          maxlength="10"/>
+      <span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div>
       <label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*</label>
@@ -51,13 +59,22 @@
         </#if>
         ${screens.render("component://common/widget/CommonScreens.xml#countries")}
       </select>
-      <span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div id="billToStates">
-      <label for="billToStateProvinceGeoId">${uiLabelMap.PartyState}*<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
+      <label for="billToStateProvinceGeoId">
+        ${uiLabelMap.PartyState}*
+        <span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">
+          (${uiLabelMap.CommonRequired})
+        </span>
+      </label>
       <select name="stateProvinceGeoId" id="billToStateProvinceGeoId">
         <#if billToStateProvinceGeoId?has_content>
-          <option value='${billToStateProvinceGeoId!}'>${billToStateProvinceGeo!(billToStateProvinceGeoId!)}</option>
+          <option value='${billToStateProvinceGeoId!}'>
+            ${billToStateProvinceGeo!(billToStateProvinceGeoId!)}
+          </option>
         <#else>
           <option value="_NA_">${uiLabelMap.PartyNoState}</option>
         </#if>
@@ -69,23 +86,33 @@
         <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
         <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
         <span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
-        <span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-        <input type="hidden" name="phoneContactMechId" value="${billToTelecomNumber.contactMechId!}" />
-        <input type="text" name="countryCode" id="billToCountryCode" class="required" value="${billToTelecomNumber.countryCode!}" size="3" maxlength="3" />
-        - <input type="text" name="areaCode" id="billToAreaCode" class="required" value="${billToTelecomNumber.areaCode!}" size="3" maxlength="3" />
-        - <input type="text" name="contactNumber" id="billToContactNumber" class="required" value="${contactNumber?default("${billToTelecomNumber.contactNumber!}")}" size="6" maxlength="7" />
-        - <input type="text" name="extension" value="${extension?default("${billToExtension!}")}" size="3" maxlength="3" />
+        <span id="billToPhoneRequired" style="display: none;" class="errorMessage">
+          (${uiLabelMap.CommonRequired})
+        </span>
+        <input type="hidden" name="phoneContactMechId" value="${billToTelecomNumber.contactMechId!}"/>
+        <input type="text" name="countryCode" id="billToCountryCode" class="required"
+            value="${billToTelecomNumber.countryCode!}" size="3" maxlength="3"/>
+        - <input type="text" name="areaCode" id="billToAreaCode" class="required"
+              value="${billToTelecomNumber.areaCode!}" size="3" maxlength="3"/>
+        - <input type="text" name="contactNumber" id="billToContactNumber" class="required"
+              value="${contactNumber?default("${billToTelecomNumber.contactNumber!}")}" size="6" maxlength="7"/>
+        - <input type="text" name="extension"
+              value="${extension?default("${billToExtension!}")}" size="3" maxlength="3"/>
       </div>
     </#if>
     <div class="inline">
       <label for="setShippingPurposeForBilling">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
-      <input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForBilling" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
+      <input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForBilling" value="Y"
+          <#if setShippingPurpose??>checked="checked"</#if>/>
     </div>
-      <#--
-    <div>
-      <a name="submitEditBillToPostalAddress" id="submitEditBillToPostalAddress" class="button" onclick="updatePartyBillToPostalAddress('submitEditBillToPostalAddress')">${uiLabelMap.CommonSubmit}</a>
-      <a class="popup_closebox button" href="javascript:void(0);">${uiLabelMap.CommonClose}</a>
-    </div>
-      -->
+    <#--
+      <div>
+        <a name="submitEditBillToPostalAddress" id="submitEditBillToPostalAddress" class="button"
+            onclick="updatePartyBillToPostalAddress('submitEditBillToPostalAddress')">
+          ${uiLabelMap.CommonSubmit}
+        </a>
+        <a class="popup_closebox button" href="javascript:void(0);">${uiLabelMap.CommonClose}</a>
+      </div>
+    -->
   </fieldset>
 </form>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/customer/profile/EditPostalAddress.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/EditPostalAddress.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/EditPostalAddress.ftl	(working copy)
@@ -18,68 +18,88 @@
 -->
 
 <div id="serverError_${contactMech.contactMechId}" class="errorMessage"></div>
-<#assign postalAddress = delegator.findOne("PostalAddress", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) />
+<#assign postalAddress = delegator.findOne("PostalAddress",
+    Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) />
 
 <form id="editPostalAddress_${contactMech.contactMechId}" method="post" action="">
   <fieldset>
-    <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
+    <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
     <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-    <input type="hidden" name="productStoreId" value="${productStoreId!}" />
-      <div>
-        <label for="address1_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine1}*</label>
-        <input type="text" class="required" name="address1" id="address1_${contactMech.contactMechId}" value="${postalAddress.address1!}" maxlength="30" />
-        <span id="advice-required-address1_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-      </div>
-      <div>
-        <label for="additionalAddress2_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine2}</label>
-        <input type="text" name="address2" id="additionalAddress2_${contactMech.contactMechId}" value="${postalAddress.address2!}" maxlength="30" />
-      </div>
-      <div>
-        <label for="city_${contactMech.contactMechId}">${uiLabelMap.PartyCity}*</label>
-        <input type="text" class="required" name="city" id="city_${contactMech.contactMechId}" value="${postalAddress.city!}" maxlength="30" />
-        <span id="advice-required-city_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-      </div>
-      <div>
-        <label for="postalCode_${contactMech.contactMechId}">${uiLabelMap.PartyZipCode}*</label>
-        <input type="text" class="required" name="postalCode" id="postalCode_${contactMech.contactMechId}" value="${postalAddress.postalCode!}" maxlength="10" />
-        <span id="advice-required-postalCode_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-      </div>
-      <div>
-        <label for="countryGeoId_${contactMech.contactMechId}">${uiLabelMap.CommonCountry}*</label>
-        <select name="countryGeoId" id="countryGeoId_${contactMech.contactMechId}" class="required">
-          <#if postalAddress.countryGeoId??>
-            <#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId", postalAddress.countryGeoId), true) />
-            <option value="${postalAddress.countryGeoId}">${geo.geoName!(postalAddress.countryGeoId)}</option>
-          </#if>
-          ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-        </select>
-        <span id="advice-required-countryGeoId_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-      </div>
-      <div id="states_${contactMech.contactMechId}">
-        <label for="stateProvinceGeoId_${contactMech.contactMechId}">${uiLabelMap.PartyState}*</label>
-        <select name="stateProvinceGeoId" id="stateProvinceGeoId_${contactMech.contactMechId}">
-          <#if postalAddress.stateProvinceGeoId??>
-            <#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("geoId", postalAddress.stateProvinceGeoId), true) />
-            <option value="${postalAddress.stateProvinceGeoId}">${geo.geoName!(postalAddress.stateProvinceGeoId)}</option>
-          <#else>
-            <option value="_NA_">${uiLabelMap.PartyNoState}</option>
-          </#if>
-        </select>
-        <span id="advice-required-stateProvinceGeoId_${contactMech.contactMechId}" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-      </div>
-      <div class="inline">
-        <label for="setBillingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
-        <input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForPostalAddress" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
-      </div>
-      <div class="inline">
-        <label for="setShippingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
-        <input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForPostalAddress" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
-      </div>
-        <#--
-      <div>
-        <a name="submitEditPostalAddress_${contactMech.contactMechId}" id="submitEditPostalAddress_${contactMech.contactMechId}" class="button" onclick="updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}')">${uiLabelMap.CommonSubmit}</a>
-        <a href="javascript:void(0);" class="popup_closebox button">${uiLabelMap.CommonClose}</a>
-      </div>
-        -->
+    <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
+    <div>
+      <label for="address1_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine1}*</label>
+      <input type="text" class="required" name="address1" id="address1_${contactMech.contactMechId}"
+          value="${postalAddress.address1!}" maxlength="30"/>
+      <span id="advice-required-address1_${contactMech.contactMechId}" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+    </div>
+    <div>
+      <label for="additionalAddress2_${contactMech.contactMechId}">${uiLabelMap.PartyAddressLine2}</label>
+      <input type="text" name="address2" id="additionalAddress2_${contactMech.contactMechId}"
+          value="${postalAddress.address2!}" maxlength="30"/>
+    </div>
+    <div>
+      <label for="city_${contactMech.contactMechId}">${uiLabelMap.PartyCity}*</label>
+      <input type="text" class="required" name="city" id="city_${contactMech.contactMechId}"
+          value="${postalAddress.city!}" maxlength="30"/>
+      <span id="advice-required-city_${contactMech.contactMechId}" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+    </div>
+    <div>
+      <label for="postalCode_${contactMech.contactMechId}">${uiLabelMap.PartyZipCode}*</label>
+      <input type="text" class="required" name="postalCode" id="postalCode_${contactMech.contactMechId}"
+          value="${postalAddress.postalCode!}" maxlength="10"/>
+      <span id="advice-required-postalCode_${contactMech.contactMechId}" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+    </div>
+    <div>
+      <label for="countryGeoId_${contactMech.contactMechId}">${uiLabelMap.CommonCountry}*</label>
+      <select name="countryGeoId" id="countryGeoId_${contactMech.contactMechId}" class="required">
+        <#if postalAddress.countryGeoId??>
+          <#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"]
+              .toMap("geoId", postalAddress.countryGeoId), true) />
+          <option value="${postalAddress.countryGeoId}">${geo.geoName!(postalAddress.countryGeoId)}</option>
+        </#if>
+        ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+      </select>
+      <span id="advice-required-countryGeoId_${contactMech.contactMechId}" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+    </div>
+    <div id="states_${contactMech.contactMechId}">
+      <label for="stateProvinceGeoId_${contactMech.contactMechId}">${uiLabelMap.PartyState}*</label>
+      <select name="stateProvinceGeoId" id="stateProvinceGeoId_${contactMech.contactMechId}">
+        <#if postalAddress.stateProvinceGeoId??>
+          <#assign geo = delegator.findOne("Geo", Static["org.apache.ofbiz.base.util.UtilMisc"]
+              .toMap("geoId", postalAddress.stateProvinceGeoId), true) />
+          <option value="${postalAddress.stateProvinceGeoId}">
+            ${geo.geoName!(postalAddress.stateProvinceGeoId)}
+          </option>
+        <#else>
+          <option value="_NA_">${uiLabelMap.PartyNoState}</option>
+        </#if>
+      </select>
+      <span id="advice-required-stateProvinceGeoId_${contactMech.contactMechId}" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+    </div>
+    <div class="inline">
+      <label for="setBillingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
+      <input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForPostalAddress" value="Y"
+          <#if setBillingPurpose??>checked="checked"</#if>/>
+    </div>
+    <div class="inline">
+      <label for="setShippingPurposeForPostalAddress">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
+      <input type="checkbox" name="setShippingPurpose" id="setShippingPurposeForPostalAddress" value="Y"
+          <#if setShippingPurpose??>checked="checked"</#if>/>
+    </div>
+      <#--
+    <div>
+      <a name="submitEditPostalAddress_${contactMech.contactMechId}"
+          id="submitEditPostalAddress_${contactMech.contactMechId}" class="button"
+          onclick="updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}')">
+        ${uiLabelMap.CommonSubmit}
+      </a>
+      <a href="javascript:void(0);" class="popup_closebox button">${uiLabelMap.CommonClose}</a>
+    </div>
+      -->
   </fieldset>
 </form>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/customer/profile/EditProfile.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/EditProfile.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/EditProfile.ftl	(working copy)
@@ -23,46 +23,64 @@
     <fieldset class="left center">
       <input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL" />
       <input type="hidden" name="emailContactMechId" value="${emailContactMechId!}" />
-        <h3>${uiLabelMap.PartyContactInformation}</h3>
-        <div>
-          <label for="firstName">${uiLabelMap.PartyFirstName}*<span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-          <input type="text" name="firstName" id="firstName" class="required" value="${firstName!}" maxlength="30" />
-        </div>
-        <div>
-          <label for="lastName">${uiLabelMap.PartyLastName}*<span id="advice-required-lastName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-          <input type="text" name="lastName" id="lastName" class="required" value="${lastName!}" maxlength="30" />
-        </div>
-        <div>
-          <label for="emailAddress">${uiLabelMap.CommonEmail}*
-            <span id="advice-required-emailAddress" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-            <span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}</span>
-          </label>
-          <input type="text" class="required validate-email" name="emailAddress" id="emailAddress" value="${emailAddress!}" maxlength="255" />
-        </div>
+      <h3>${uiLabelMap.PartyContactInformation}</h3>
+      <div>
+        <label for="firstName">
+          ${uiLabelMap.PartyFirstName}*
+          <span id="advice-required-firstName" style="display: none" class="errorMessage">
+            (${uiLabelMap.CommonRequired})
+          </span>
+        </label>
+        <input type="text" name="firstName" id="firstName" class="required" value="${firstName!}" maxlength="30" />
+      </div>
+      <div>
+        <label for="lastName">
+          ${uiLabelMap.PartyLastName}*
+          <span id="advice-required-lastName" style="display: none" class="errorMessage">
+            (${uiLabelMap.CommonRequired})
+          </span>
+        </label>
+        <input type="text" name="lastName" id="lastName" class="required" value="${lastName!}" maxlength="30" />
+      </div>
+      <div>
+        <label for="emailAddress">${uiLabelMap.CommonEmail}*
+          <span id="advice-required-emailAddress" style="display: none" class="errorMessage">
+            (${uiLabelMap.CommonRequired})
+          </span>
+          <span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">
+            ${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}
+          </span>
+        </label>
+        <input type="text" class="required validate-email" name="emailAddress" id="emailAddress"
+            value="${emailAddress!}" maxlength="255" />
+      </div>
     </fieldset>
 
     <fieldset class="center right">
-        <h3>${uiLabelMap.EcommerceAccountInformation}</h3>
-        <div>
-          <label for="userLoginId">${uiLabelMap.CommonUsername}*</label>
-          <input type="text" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}" maxlength="255" <#if userLogin.userLoginId??>disabled="disabled"</#if> />
-        </div>
-        <div>
-          <label for="currentPassword">${uiLabelMap.CommonCurrentPassword}*</label>
-          <input type="password" name="currentPassword" id="currentPassword" value="" maxlength="16" />
-        </div>
-        <div>
-          <label for="newPassword">${uiLabelMap.CommonNewPassword}*</label>
-          <input type="password" name="newPassword" id="newPassword" value="" maxlength="16" />
-        </div>
-        <div>
-          <label for="newPasswordVerify">${uiLabelMap.CommonNewPasswordVerify}*</label>
-          <input type="password" name="newPasswordVerify" id="newPasswordVerify" value="" maxlength="16" />
-        </div>
+      <h3>${uiLabelMap.EcommerceAccountInformation}</h3>
+      <div>
+        <label for="userLoginId">${uiLabelMap.CommonUsername}*</label>
+        <input type="text" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}"
+            maxlength="255" <#if userLogin.userLoginId??>disabled="disabled"</#if> />
+      </div>
+      <div>
+        <label for="currentPassword">${uiLabelMap.CommonCurrentPassword}*</label>
+        <input type="password" name="currentPassword" id="currentPassword" value="" maxlength="16" />
+      </div>
+      <div>
+        <label for="newPassword">${uiLabelMap.CommonNewPassword}*</label>
+        <input type="password" name="newPassword" id="newPassword" value="" maxlength="16" />
+      </div>
+      <div>
+        <label for="newPasswordVerify">${uiLabelMap.CommonNewPasswordVerify}*</label>
+        <input type="password" name="newPasswordVerify" id="newPasswordVerify" value="" maxlength="16" />
+      </div>
     </fieldset>
     <div>
       <input type="submit" id="submitEditUserForm" class="button" vlaue="${uiLabelMap.CommonSubmit}">
-      <a id="cancelEditUserForm" href="<@ofbizUrl>viewprofile</@ofbizUrl>" class="button">${uiLabelMap.CommonCancel}</a>
+      <a id="cancelEditUserForm" href="<@ofbizUrl>viewprofile</@ofbizUrl>" class="button">
+        ${uiLabelMap.CommonCancel}
+      </a>
     </div>
   </form>
 </div>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/customer/profile/EditShipToAddress.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/EditShipToAddress.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/EditShipToAddress.ftl	(working copy)
@@ -20,28 +20,36 @@
 <div id="shipToServerError" class="errorMessage"></div>
 <form id="editShipToPostalAddress" method="post" action="">
   <fieldset>
-    <input type="hidden" name="setShippingPurpose" value="Y" />
-    <input type="hidden" name="contactMechId" value="${shipToContactMechId!}" />
-    <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-    <input type="hidden" name="productStoreId" value="${productStoreId!}" />
+    <input type="hidden" name="setShippingPurpose" value="Y"/>
+    <input type="hidden" name="contactMechId" value="${shipToContactMechId!}"/>
+    <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
+        .getProductStoreId(request) />
+    <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
     <div>
       <label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*</label>
-      <input type="text" class="required" name="address1" id="shipToAddress1" value="${shipToAddress1!}" maxlength="30" />
-      <span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="address1" id="shipToAddress1" value="${shipToAddress1!}"
+          maxlength="30"/>
+      <span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div>
       <label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-      <input type="text" name="address2" id="shipToAddress2" value="${shipToAddress2!}" maxlength="30" />
+      <input type="text" name="address2" id="shipToAddress2" value="${shipToAddress2!}" maxlength="30"/>
     </div>
     <div>
       <label for="shipToCity">${uiLabelMap.PartyCity}*</label>
-      <input type="text" class="required" name="city" id="shipToCity" value="${shipToCity!}" maxlength="30" />
-      <span id="advice-required-shipToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="city" id="shipToCity" value="${shipToCity!}" maxlength="30"/>
+      <span id="advice-required-shipToCity" style="display: none" class="errorMessage">
+        (${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div>
       <label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*</label>
-      <input type="text" class="required" name="postalCode" id="shipToPostalCode" value="${shipToPostalCode!}" maxlength="10" />
-      <span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <input type="text" class="required" name="postalCode" id="shipToPostalCode" value="${shipToPostalCode!}"
+          maxlength="10"/>
+      <span id="advice-required-shipToPostalCode" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})</span>
     </div>
     <div>
       <label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*</label>
@@ -51,13 +59,22 @@
         </#if>
         ${screens.render("component://common/widget/CommonScreens.xml#countries")}
       </select>
-      <span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+      <span id="advice-required-shipToCountryGeoId" style="display: none"
+          class="errorMessage">(${uiLabelMap.CommonRequired})
+      </span>
     </div>
     <div id="shipToStates">
-      <label for="shipToStateProvinceGeoId">${uiLabelMap.PartyState}*<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
+      <label for="shipToStateProvinceGeoId">
+        ${uiLabelMap.PartyState}*
+        <span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">
+          (${uiLabelMap.CommonRequired})
+        </span>
+      </label>
       <select name="stateProvinceGeoId" id="shipToStateProvinceGeoId">
         <#if shipToStateProvinceGeoId?has_content>
-          <option value='${shipToStateProvinceGeoId!}'>${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}</option>
+          <option value='${shipToStateProvinceGeoId!}'>
+            ${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}
+          </option>
         <#else>
           <option value="_NA_">${uiLabelMap.PartyNoState}</option>
         </#if>
@@ -70,20 +87,27 @@
         <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
         <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
         <span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-        <input type="hidden" name="phoneContactMechId" value="${shipToTelecomNumber.contactMechId!}" />
-        <input type="text" name="countryCode" id="shipToCountryCode" class="required" value="${shipToTelecomNumber.countryCode!}" size="3" maxlength="3" />
-        - <input type="text" name="areaCode" id="shipToAreaCode" class="required" value="${shipToTelecomNumber.areaCode!}" size="3" maxlength="3" />
-        - <input type="text" name="contactNumber" id="shipToContactNumber" class="required" value="${contactNumber?default("${shipToTelecomNumber.contactNumber!}")}" size="6" maxlength="7" />
-        - <input type="text" name="extension" value="${extension?default("${shipToExtension!}")}" size="3" maxlength="3" />
+        <input type="hidden" name="phoneContactMechId" value="${shipToTelecomNumber.contactMechId!}"/>
+        <input type="text" name="countryCode" id="shipToCountryCode" class="required"
+            value="${shipToTelecomNumber.countryCode!}" size="3" maxlength="3"/>
+        - <input type="text" name="areaCode" id="shipToAreaCode" class="required"
+              value="${shipToTelecomNumber.areaCode!}" size="3" maxlength="3"/>
+        - <input type="text" name="contactNumber" id="shipToContactNumber" class="required"
+              value="${contactNumber?default("${shipToTelecomNumber.contactNumber!}")}" size="6" maxlength="7"/>
+        - <input type="text" name="extension" value="${extension?default("${shipToExtension!}")}" size="3"
+              maxlength="3"/>
       </div>
     </#if>
     <div class="inline">
       <label for="setBillingPurposeForShipping">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
-      <input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForShipping" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
+      <input type="checkbox" name="setBillingPurpose" id="setBillingPurposeForShipping" value="Y"
+          <#if setBillingPurpose??>checked="checked"</#if>/>
     </div>
     <#--
     <div>
-      <a name="submitEditShipToPostalAddress" id="submitEditShipToPostalAddress" class="button" onclick="updatePartyShipToPostalAddress('submitEditShipToPostalAddress')">${uiLabelMap.CommonSubmit}</a>
+      <a name="submitEditShipToPostalAddress" id="submitEditShipToPostalAddress" class="button"
+          onclick="updatePartyShipToPostalAddress('submitEditShipToPostalAddress')">
+        ${uiLabelMap.CommonSubmit}</a>
       <a class="popup_closebox button">${uiLabelMap.CommonClose}</a>
     </div>
     -->
Index: specialpurpose/ecommerce/template/customer/profile/ManageAddress.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/ManageAddress.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/ManageAddress.ftl	(working copy)
@@ -17,11 +17,11 @@
 under the License.
 -->
 
-<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
+<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"]
+    .getProductStoreId(request) />
 <div class="screenlet clearfix">
   <form id="refreshRequestForm" method="post" action="<@ofbizUrl>manageAddress</@ofbizUrl>">
   </form>
-
   <h3>${uiLabelMap.EcommerceAddressBook}</h3>
   <div class="screenlet-body">
     <#-- Add address -->
@@ -30,82 +30,95 @@
       <div id="serverError" class="errorMessage"></div>
       <form id="createPostalAddressForm" method="post" action="">
         <fieldset>
-          <input type="hidden" name="roleTypeId" value="CUSTOMER" />
-          <input type="hidden" name="productStoreId" value="${productStoreId!}" />
+          <input type="hidden" name="roleTypeId" value="CUSTOMER"/>
+          <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
           <div>
             <label for="address1">${uiLabelMap.PartyAddressLine1}*
-               <span id="advice-required-address1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+              <span id="advice-required-address1" style="display: none" class="errorMessage">
+                (${uiLabelMap.CommonRequired})
+              </span>
             </label>
-            <input type="text" class="required" name="address1" id="address1" value="" maxlength="30" />
+            <input type="text" class="required" name="address1" id="address1" value="" maxlength="30"/>
           </div>
           <div>
             <label for="address2">${uiLabelMap.PartyAddressLine2}</label>
-            <input type="text" name="address2" id="address2" value="" maxlength="30" />
+            <input type="text" name="address2" id="address2" value="" maxlength="30"/>
           </div>
           <div>
             <label for="city">${uiLabelMap.PartyCity}*
-              <span id="advice-required-city" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+              <span id="advice-required-city" style="display: none"
+                  class="errorMessage">(${uiLabelMap.CommonRequired})</span>
             </label>
-            <input type="text" class="required" name="city" id="city" value="" maxlength="30" />
+            <input type="text" class="required" name="city" id="city" value="" maxlength="30"/>
           </div>
           <div>
             <label for="postalCode">${uiLabelMap.PartyZipCode}*
-              <span id="advice-required-postalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+              <span id="advice-required-postalCode" style="display: none"
+                  class="errorMessage">(${uiLabelMap.CommonRequired})</span>
             </label>
-            <input type="text" class="required" name="postalCode" id="postalCode" value="" maxlength="10" />
+            <input type="text" class="required" name="postalCode" id="postalCode" value="" maxlength="10"/>
           </div>
           <div>
             <label for="countryGeoId">${uiLabelMap.CommonCountry}*
-              <span id="advice-required-countryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+              <span id="advice-required-countryGeoId" style="display: none"
+                  class="errorMessage">(${uiLabelMap.CommonRequired})
+              </span>
             </label>
-             <select name="countryGeoId" id="countryGeoId" class="required">
-               <#if countryGeoId??>
-                 <option value="${countryGeoId}">${countryGeoId}</option>
-               </#if>
-               ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-             </select>
+            <select name="countryGeoId" id="countryGeoId" class="required">
+              <#if countryGeoId??>
+                <option value="${countryGeoId}">${countryGeoId}</option>
+              </#if>
+              ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+            </select>
           </div>
           <div id="states">
             <label for="stateProvinceGeoId">${uiLabelMap.PartyState}*
-              <span id="advice-required-stateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+              <span id="advice-required-stateProvinceGeoId" style="display: none"
+                  class="errorMessage">(${uiLabelMap.CommonRequired})
+              </span>
             </label>
-              <select name="stateProvinceGeoId" id="stateProvinceGeoId">
+            <select name="stateProvinceGeoId" id="stateProvinceGeoId">
               <#if stateProvinceGeoId?has_content>
                 <option value="${stateProvinceGeoId}">${stateProvinceGeoId}</option>
               <#else>
                 <option value="_NA_">${uiLabelMap.PartyNoState}</option>
               </#if>
-              </select>
+            </select>
           </div>
           <div class="inline">
             <label for="setBillingPurpose">${uiLabelMap.EcommerceMyDefaultBillingAddress}</label>
-            <input type="checkbox" name="setBillingPurpose" id="setBillingPurpose" value="Y" <#if setBillingPurpose??>checked="checked"</#if> />
+            <input type="checkbox" name="setBillingPurpose" id="setBillingPurpose" value="Y"
+                <#if setBillingPurpose??>checked="checked"</#if>/>
           </div>
           <div class="inline">
             <label for="setShippingPurpose">${uiLabelMap.EcommerceMyDefaultShippingAddress}</label>
-            <input type="checkbox" name="setShippingPurpose" id="setShippingPurpose" value="Y" <#if setShippingPurpose??>checked="checked"</#if> />
+            <input type="checkbox" name="setShippingPurpose" id="setShippingPurpose" value="Y"
+                <#if setShippingPurpose??>checked="checked"</#if>/>
           </div>
         </fieldset>
       </form>
     </div>
     <script type="text/javascript">
-      //<![CDATA[
-        jQuery("#displayCreateAddressForm").dialog({autoOpen: false, modal: true,
+        //<![CDATA[
+            jQuery("#displayCreateAddressForm").dialog({
+                autoOpen: false, modal: true,
                 buttons: {
-                '${uiLabelMap.CommonSubmit}': function() {
-                    var createAddressForm = jQuery("#displayCreateAddressForm");
-                    if (jQuery("#createPostalAddressForm").valid()) {
-                        jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
-                        createPartyPostalAddress();
+                    '${uiLabelMap.CommonSubmit}': function () {
+                        var createAddressForm = jQuery("#displayCreateAddressForm");
+                        if (jQuery("#createPostalAddressForm").valid()) {
+                            jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
+                            createPartyPostalAddress();
+                        }
+                    },
+                    '${uiLabelMap.CommonClose}': function () {
+                        jQuery(this).dialog('close');
                     }
-                },
-                '${uiLabelMap.CommonClose}': function() {
-                    jQuery(this).dialog('close');
-                    }
                 }
-        });
-        jQuery("#addAddress").click(function(){jQuery("#displayCreateAddressForm").dialog("open")});
-      //]]>
+            });
+            jQuery("#addAddress").click(function () {
+                jQuery("#displayCreateAddressForm").dialog("open")
+            });
+        //]]>
     </script>
   </div>
 
@@ -113,104 +126,122 @@
   <div class="left center">
     <h3>${uiLabelMap.EcommerceDefaultAddresses}</h3>
     <div class="screenlet-body">
-      <#--===================================== Billing Address and Telecom number ===========================================-->
+    <#--===================================== Billing Address and Telecom number ====================================-->
       <h3>${uiLabelMap.EcommercePrimaryBillingAddress}</h3>
       <ul>
-      <#if billToContactMechId??>
-        <li>${billToAddress1!}</li>
-        <#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
-        <li>
-          <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
-            ${billToStateProvinceGeoId}
+        <#if billToContactMechId??>
+          <li>${billToAddress1!}</li>
+          <#if billToAddress2?has_content>
+            <li>${billToAddress2!}</li>
           </#if>
-          ${billToCity!},
-          ${billToPostalCode!}
-        </li>
-        <li>${billToCountryGeoId!}</li>
-        <#if billToTelecomNumber?has_content>
-        <li>
-          ${billToTelecomNumber.countryCode!}-
-          ${billToTelecomNumber.areaCode!}-
-          ${billToTelecomNumber.contactNumber!}
-          <#if billToExtension??>-${billToExtension!}</#if>
-        </li>
+          <li>
+            <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
+              ${billToStateProvinceGeoId}
+            </#if>
+            ${billToCity!},
+            ${billToPostalCode!}
+          </li>
+          <li>${billToCountryGeoId!}</li>
+            <#if billToTelecomNumber?has_content>
+          <li>
+            ${billToTelecomNumber.countryCode!}-
+            ${billToTelecomNumber.areaCode!}-
+            ${billToTelecomNumber.contactNumber!}
+            <#if billToExtension??>-${billToExtension!}</#if>
+          </li>
+          </#if>
+          <li>
+            <a id="updateBillToPostalAddress" href="javascript:void(0)"
+                class="button popup_link">${uiLabelMap.CommonEdit}
+            </a>
+          </li>
+        <#else>
+          <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
         </#if>
-        <li><a id="updateBillToPostalAddress" href="javascript:void(0)" class="button popup_link">${uiLabelMap.CommonEdit}</a></li>
-      <#else>
-        <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
-      </#if>
       </ul>
       <div id="displayEditBillToPostalAddress" style="display: none;">
         <#include "EditBillToAddress.ftl" />
       </div>
       <script type="text/javascript">
-        //<![CDATA[
-        jQuery("#displayEditBillToPostalAddress").dialog({autoOpen: false, modal: true,
-            buttons: {
-            '${uiLabelMap.CommonSubmit}': function() {
-                var createAddressForm = jQuery("#displayEditBillToPostalAddress");
-                if (jQuery("#editBillToPostalAddress").valid()) {
-                    jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
-                    updatePartyBillToPostalAddress();
+          //<![CDATA[
+            jQuery("#displayEditBillToPostalAddress").dialog({
+                autoOpen: false, modal: true,
+                buttons: {
+                    '${uiLabelMap.CommonSubmit}': function () {
+                        var createAddressForm = jQuery("#displayEditBillToPostalAddress");
+                        if (jQuery("#editBillToPostalAddress").valid()) {
+                            jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
+                            updatePartyBillToPostalAddress();
+                        }
+
+                    },
+                    '${uiLabelMap.CommonClose}': function () {
+                        jQuery(this).dialog('close');
+                    }
                 }
-                
-            },
-            '${uiLabelMap.CommonClose}': function() {
-                jQuery(this).dialog('close');
-                }
-            }
-        });
-        jQuery("#updateBillToPostalAddress").click(function(){jQuery("#displayEditBillToPostalAddress").dialog("open")});
-        //]]>
+            });
+            jQuery("#updateBillToPostalAddress").click(function () {
+                jQuery("#displayEditBillToPostalAddress").dialog("open")
+            });
+          //]]>
       </script>
 
-    <#--===================================== Shipping Address and Telecom number ===========================================-->
+    <#--===================================== Shipping Address and Telecom number ===================================-->
       <h3>${uiLabelMap.EcommercePrimaryShippingAddress}</h3>
       <ul>
-      <#if shipToContactMechId??>
-        <li>${shipToAddress1!}</li>
-        <#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
-        <li>
-        <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
-          ${shipToStateProvinceGeoId}
+        <#if shipToContactMechId??>
+          <li>${shipToAddress1!}</li>
+          <#if shipToAddress2?has_content>
+            <li>${shipToAddress2!}</li>
+          </#if>
+          <li>
+            <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
+              ${shipToStateProvinceGeoId}
+            </#if>
+            ${shipToCity!},
+            ${shipToPostalCode!}
+          </li>
+          <li>${shipToCountryGeoId!}</li>
+          <#if shipToTelecomNumber?has_content>
+            <li>
+              ${shipToTelecomNumber.countryCode!}-
+              ${shipToTelecomNumber.areaCode!}-
+              ${shipToTelecomNumber.contactNumber!}
+              <#if shipToExtension??>-${shipToExtension!}</#if>
+            </li>
+          </#if>
+          <li>
+            <a id="updateShipToPostalAddress" href="javascript:void(0)"
+                class="button popup_link">${uiLabelMap.CommonEdit}
+            </a>
+          </li>
+        <#else>
+          <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
         </#if>
-          ${shipToCity!},
-          ${shipToPostalCode!}
-        </li>
-        <li>${shipToCountryGeoId!}</li>
-        <#if shipToTelecomNumber?has_content>
-        <li>
-          ${shipToTelecomNumber.countryCode!}-
-          ${shipToTelecomNumber.areaCode!}-
-          ${shipToTelecomNumber.contactNumber!}
-          <#if shipToExtension??>-${shipToExtension!}</#if>
-        </li>
-        </#if>
-        <li><a id="updateShipToPostalAddress" href="javascript:void(0)" class="button popup_link">${uiLabelMap.CommonEdit}</a></li>
-      <#else>
-        <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
-      </#if>
       </ul>
       <div id="displayEditShipToPostalAddress" style="display: none;">
         <#include "EditShipToAddress.ftl" />
       </div>
       <script type="text/javascript">
-         //<![CDATA[
-          jQuery("#displayEditShipToPostalAddress").dialog({autoOpen: false, modal: true,
-            buttons: {
-            '${uiLabelMap.CommonSubmit}': function() {
-                var createAddressForm = jQuery("#displayEditShipToPostalAddress");
-                if (jQuery("#editShipToPostalAddress").valid()) {
-                    jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
-                    updatePartyShipToPostalAddress('submitEditShipToPostalAddress');
-                }
-            },
-            '${uiLabelMap.CommonClose}': function() {
-                jQuery(this).dialog('close');
-                }
-            }
-          });
-          jQuery("#updateShipToPostalAddress").click(function(){jQuery("#displayEditShipToPostalAddress").dialog("open")});
+          //<![CDATA[
+              jQuery("#displayEditShipToPostalAddress").dialog({
+                autoOpen: false, modal: true,
+                buttons: {
+                    '${uiLabelMap.CommonSubmit}': function () {
+                        var createAddressForm = jQuery("#displayEditShipToPostalAddress");
+                        if (jQuery("#editShipToPostalAddress").valid()) {
+                            jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
+                            updatePartyShipToPostalAddress('submitEditShipToPostalAddress');
+                        }
+                    },
+                    '${uiLabelMap.CommonClose}': function () {
+                        jQuery(this).dialog('close');
+                    }
+                  }
+              });
+              jQuery("#updateShipToPostalAddress").click(function () {
+                  jQuery("#displayEditShipToPostalAddress").dialog("open")
+              });
           //]]>
       </script>
     </div>
@@ -233,59 +264,69 @@
               <#include "EditPostalAddress.ftl" />
             </div>
             <#if postalAddress??>
-                <div class="form-field">
-                    <ul>
-                      <li>${postalAddress.address1}</li>
-                      <#if postalAddress.address2?has_content><li>${postalAddress.address2}</li></#if>
-                      <li>${postalAddress.city}</li>
-                      <li>
-                      <#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_">
-                        ${postalAddress.stateProvinceGeoId}
-                      </#if>
-                        ${postalAddress.postalCode!}
-                      </li>
-                    <#if postalAddress.countryGeoId?has_content><li>${postalAddress.countryGeoId}</li></#if>
-                    </ul>
-                    <#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")>
-                      <#assign addr1 = postalAddress.address1! />
-                      <#if (addr1.indexOf(" ") > 0)>
-                        <#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) />
-                        <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) />
-                        <a target="_blank" href="#" class="linktext">(${uiLabelMap.CommonLookupWhitepages})</a>
-                      </#if>
+              <div class="form-field">
+                <ul>
+                  <li>${postalAddress.address1}</li>
+                  <#if postalAddress.address2?has_content>
+                    <li>${postalAddress.address2}</li></#if>
+                  <li>${postalAddress.city}</li>
+                  <li>
+                    <#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_">
+                      ${postalAddress.stateProvinceGeoId}
                     </#if>
-                </div>
+                    ${postalAddress.postalCode!}
+                  </li>
+                  <#if postalAddress.countryGeoId?has_content>
+                    <li>${postalAddress.countryGeoId}</li>
+                  </#if>
+                </ul>
+                <#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")>
+                  <#assign addr1 = postalAddress.address1! />
+                  <#if (addr1.indexOf(" ") > 0)>
+                    <#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) />
+                    <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) />
+                    <a target="_blank" href="#" class="linktext">(${uiLabelMap.CommonLookupWhitepages})</a>
+                  </#if>
+                </#if>
+              </div>
               <div>
                 <span>
-                  <a id="update_${contactMech.contactMechId}" href="javascript:void(0)" class="button popup_link" onclick="showState('${contactMech.contactMechId}')">${uiLabelMap.CommonEdit}</a></span>
-                  <form id="deletePostalAddress_${contactMech.contactMechId}" method= "post" action= "<@ofbizUrl>deletePostalAddress</@ofbizUrl>">
-                    <fieldset>
-                      <input type= "hidden" name= "contactMechId" value= "${contactMech.contactMechId}" />
-                    </fieldset>
-                  </form>
+                  <a id="update_${contactMech.contactMechId}" href="javascript:void(0)" class="button popup_link"
+                      onclick="showState('${contactMech.contactMechId}')">${uiLabelMap.CommonEdit}
+                  </a>
+                </span>
+                <form id="deletePostalAddress_${contactMech.contactMechId}" method="post"
+                    action="<@ofbizUrl>deletePostalAddress</@ofbizUrl>">
+                  <fieldset>
+                    <input type="hidden" name="contactMechId" value="${contactMech.contactMechId}"/>
+                  </fieldset>
+                </form>
               </div>
               <script type="text/javascript">
-                //<![CDATA[
-                jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog({autoOpen: false, modal: true,
-                    buttons: {
-                    '${uiLabelMap.CommonSubmit}': function() {
-                        var createAddressForm = jQuery("#displayEditAddressForm_${contactMech.contactMechId}");
-                        if (jQuery("#editPostalAddress_${contactMech.contactMechId}").valid()) {
-                            jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
-                            updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}');
-                        }
-                    },
-                    '${uiLabelMap.CommonClose}': function() {
-                        jQuery(this).dialog('close');
-                        }
-                    }
-                });
-                jQuery("#update_${contactMech.contactMechId}").click(function(){jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog("open")});
-                //]]>
+                  //<![CDATA[
+                      jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog({
+                          autoOpen: false, modal: true,
+                          buttons: {
+                              '${uiLabelMap.CommonSubmit}': function () {
+                                  var createAddressForm = jQuery("#displayEditAddressForm_${contactMech.contactMechId}");
+                                  if (jQuery("#editPostalAddress_${contactMech.contactMechId}").valid()) {
+                                      jQuery("<p>${uiLabelMap.CommonUpdatingData}</p>").insertBefore(createAddressForm);
+                                      updatePartyPostalAddress('submitEditPostalAddress_${contactMech.contactMechId}');
+                                  }
+                              },
+                              '${uiLabelMap.CommonClose}': function () {
+                                  jQuery(this).dialog('close');
+                              }
+                          }
+                      });
+                      jQuery("#update_${contactMech.contactMechId}").click(function () {
+                          jQuery("#displayEditAddressForm_${contactMech.contactMechId}").dialog("open")
+                      });
+                  //]]>
               </script>
             <#else>
               <div>
-                 <label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
+                <label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
               </div>
             </#if>
           </#if>
@@ -293,7 +334,7 @@
       </#list>
       <#if postalAddressFlag == "N">
         <div>
-            <label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
+          <label>${uiLabelMap.PartyPostalInformationNotFound}.</label>
         </div>
       </#if>
     </div>
Index: specialpurpose/ecommerce/template/customer/profile/NewCustomer.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/NewCustomer.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/NewCustomer.ftl	(working copy)
@@ -23,151 +23,242 @@
     <form id="newUserForm" method="post" action="<@ofbizUrl>createCustomerProfile</@ofbizUrl>">
       <fieldset class="left center">
         <legend>${uiLabelMap.PartyContactInformation}</legend>
-        <input type="hidden" name="roleTypeId" value="CUSTOMER" />
-        <input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL" />
-        <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-        <input type="hidden" name="productStoreId" value="${productStoreId!}" />
-          <div>
-            <label for="firstName">${uiLabelMap.PartyFirstName}* <span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <input type="text" name="firstName" id="firstName" class="required" value="${parameters.firstName!}" maxlength="30" />
-          </div>
-          <div>
-            <label for="lastName">${uiLabelMap.PartyLastName}* <span id="advice-required-lastName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <input type="text" name="lastName" id="lastName" class="required" value="${parameters.lastName!}" maxlength="30" />
-          </div>
-          <div>
-            <label for="emailAddress">${uiLabelMap.CommonEmail}*
-              <span id="advice-required-emailAddress" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-            </label>
-            <input type="text" class="required validate-email" name="emailAddress" id="emailAddress" value="${parameters.emailAddress!}" maxlength="255" />
-          </div>
-          <span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}</span>
+        <input type="hidden" name="roleTypeId" value="CUSTOMER"/>
+        <input type="hidden" name="emailContactMechPurposeTypeId" value="PRIMARY_EMAIL"/>
+        <#assign productStoreId =
+            Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
+        <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
+        <div>
+          <label for="firstName">${uiLabelMap.PartyFirstName}*
+            <span id="advice-required-firstName" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+          </label>
+          <input type="text" name="firstName" id="firstName" class="required" value="${parameters.firstName!}"
+              maxlength="30"/>
+        </div>
+        <div>
+          <label for="lastName">${uiLabelMap.PartyLastName}*
+            <span id="advice-required-lastName" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="lastName" id="lastName" class="required" value="${parameters.lastName!}"
+              maxlength="30"/>
+        </div>
+        <div>
+          <label for="emailAddress">${uiLabelMap.CommonEmail}*
+            <span id="advice-required-emailAddress" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" class="required validate-email" name="emailAddress" id="emailAddress"
+              value="${parameters.emailAddress!}" maxlength="255"/>
+        </div>
+        <span id="advice-validate-email-emailAddress" class="errorMessage" style="display:none">
+          ${uiLabelMap.PartyEmailAddressNotFormattedCorrectly}
+        </span>
       </fieldset>
       <fieldset class="center right" id="userNameAndPasswordPanel">
-          <legend>${uiLabelMap.EcommerceAccountInformation}</legend>
-            <div>
-              <label for="username">${uiLabelMap.CommonUsername}* <span id="advice-required-username" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="text" name="username" id="username" class="required" value="${parameters.username!}" maxlength="255" />
-            </div>
-            <div>
-              <label for="password">${uiLabelMap.CommonPassword}* <span id="advice-required-password" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="password" name="password" id="password" class="required validate-password" value="${parameters.password!}" maxlength="16" />
-              <span id="advice-validate-password-password" class="errorMessage" style="display:none">${uiLabelMap["loginservices.password_may_not_equal_username"]}</span>
-            </div>
-            <div>
-              <label for="passwordVerify">${uiLabelMap.PartyRepeatPassword}* <span id="advice-required-passwordVerify" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="password" name="passwordVerify" id="passwordVerify" class="required validate-passwordVerify" value="${parameters.passwordVerify!}" maxlength="16" />
-              <span id="advice-validate-passwordVerify-passwordVerify" class="errorMessage" style="display:none">${uiLabelMap["loginservices.password_did_not_match_verify_password"]}</span>
-            </div>
+        <legend>${uiLabelMap.EcommerceAccountInformation}</legend>
+        <div>
+          <label for="username">${uiLabelMap.CommonUsername}*
+            <span id="advice-required-username" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="username" id="username" class="required" value="${parameters.username!}"
+              maxlength="255"/>
+        </div>
+        <div>
+          <label for="password">${uiLabelMap.CommonPassword}*
+            <span id="advice-required-password" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="password" name="password" id="password" class="required validate-password"
+              value="${parameters.password!}" maxlength="16"/>
+          <span id="advice-validate-password-password" class="errorMessage" style="display:none">
+            ${uiLabelMap["loginservices.password_may_not_equal_username"]}
+          </span>
+        </div>
+        <div>
+          <label for="passwordVerify">${uiLabelMap.PartyRepeatPassword}*
+            <span id="advice-required-passwordVerify" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="password" name="passwordVerify" id="passwordVerify" class="required validate-passwordVerify"
+              value="${parameters.passwordVerify!}" maxlength="16"/>
+          <span id="advice-validate-passwordVerify-passwordVerify" class="errorMessage" style="display:none">
+            ${uiLabelMap["loginservices.password_did_not_match_verify_password"]}
+          </span>
+        </div>
       </fieldset>
       <fieldset class="left center">
-          <legend>${uiLabelMap.OrderShippingInformation}</legend>
+        <legend>${uiLabelMap.OrderShippingInformation}</legend>
+        <div>
+          <label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*
+            <span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="shipToAddress1" id="shipToAddress1" class="required"
+              value="${parameters.shipToAddress1!}"/>
+        </div>
+        <div>
+          <label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
+          <input type="text" name="shipToAddress2" id="shipToAddress2" value="${parameters.shipToAddress2!}"/>
+        </div>
+        <div>
+          <label for="shipToCity">${uiLabelMap.CommonCity}*
+            <span id="advice-required-shipToCity" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="shipToCity" id="shipToCity" class="required" value="${parameters.shipToCity!}"/>
+        </div>
+        <div>
+          <label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*
+            <span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="shipToPostalCode" id="shipToPostalCode" class="required"
+              value="${parameters.shipToPostalCode!}" maxlength="10"/>
+        </div>
+        <div>
+          <label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*
+            <span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
           <div>
-            <label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}* <span id="advice-required-shipToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <input type="text" name="shipToAddress1" id="shipToAddress1" class="required" value="${parameters.shipToAddress1!}" />
+            <select name="shipToCountryGeoId" id="shipToCountryGeoId">
+              <#if shipToCountryGeoId??>
+                <option value="${shipToCountryGeoId!}">${shipToCountryProvinceGeo!(shipToCountryGeoId!)}</option>
+              </#if>
+              ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+            </select>
           </div>
+        </div>
+        <div id='shipToStates'>
+          <label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*
+            <span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
           <div>
-            <label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-            <input type="text" name="shipToAddress2" id="shipToAddress2" value="${parameters.shipToAddress2!}" />
+            <select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
+              <#if shipToStateProvinceGeoId?has_content>
+                <option value='${shipToStateProvinceGeoId!}'>
+                  ${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}
+                </option>
+              <#else>
+                <option value="_NA_">${uiLabelMap.PartyNoState}</option>
+              </#if>
+            </select>
           </div>
+        </div>
+        <div>
+          <label>${uiLabelMap.PartyPhoneNumber}*</label>
+          <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"></span>
+          <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
+          <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
+          <span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+          <input type="text" name="shipToCountryCode" id="shipToCountryCode" value="${parameters.shipToCountryCode!}"
+              size="3" maxlength="3"/>
+          - <input type="text" name="shipToAreaCode" id="shipToAreaCode" value="${parameters.shipToAreaCode!}" size="3"
+                maxlength="3"/>
+          - <input type="text" name="shipToContactNumber" id="shipToContactNumber"
+                value="${contactNumber?default("${parameters.shipToContactNumber!}")}" size="6" maxlength="7"/>
+          - <input type="text" name="shipToExtension" id="shipToExtension"
+                value="${extension?default("${parameters.shipToExtension!}")}" size="3" maxlength="3"/>
+        </div>
+        <div class="inline">
+          <input type="checkbox" class="checkbox" name="useShippingAddressForBilling" id="useShippingAddressForBilling"
+              value="Y" <#if parameters.useShippingAddressForBilling?has_content &&
+              parameters.useShippingAddressForBilling?default("")=="Y">checked="checked"</#if>/>
+          <label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
+        </div>
+      </fieldset>
+      <fieldset class="center right" id="billingAddress">
+        <legend>${uiLabelMap.PageTitleBillingInformation}</legend>
+        <div>
+          <label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*
+            <span id="advice-required-billToAddress1" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="billToAddress1" id="billToAddress1" class="required"
+              value="${parameters.billToAddress1!}"/>
+        </div>
+        <div>
+          <label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
+          <input type="text" name="billToAddress2" id="billToAddress2" value="${parameters.billToAddress2!}"/>
+        </div>
+        <div>
+          <label for="billToCity">${uiLabelMap.CommonCity}*
+            <span id="advice-required-billToCity" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="billToCity" id="billToCity" class="required" value="${parameters.billToCity!}"/>
+        </div>
+        <div>
+          <label for="billToPostalCode">${uiLabelMap.PartyZipCode}*
+            <span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <input type="text" name="billToPostalCode" id="billToPostalCode" class="required"
+              value="${parameters.billToPostalCode!}" maxlength="10"/>
+        </div>
+        <div>
+          <label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*
+            <span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
+          <select name="billToCountryGeoId" id="billToCountryGeoId" class='required selectBox'>
+            <#if billToCountryGeoId??>
+              <option value='${billToCountryGeoId!}'>${billToCountryProvinceGeo!(billToCountryGeoId!)}</option>
+            </#if>
+            ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+          </select>
+        </div>
+        <div id='billToStates'>
+          <label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*
+            <span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">
+              (${uiLabelMap.CommonRequired})
+            </span>
+          </label>
           <div>
-            <label for="shipToCity">${uiLabelMap.CommonCity}* <span id="advice-required-shipToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <input type="text" name="shipToCity" id="shipToCity" class="required" value="${parameters.shipToCity!}" />
+            <select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
+            <#if billToStateProvinceGeoId?has_content>
+              <option value='${billToStateProvinceGeoId!}'>
+                ${billToStateProvinceGeo!(billToStateProvinceGeoId!)}
+              </option>
+            <#else>
+              <option value="_NA_">${uiLabelMap.PartyNoState}</option>
+            </#if>
+            </select>
           </div>
-          <div>
-            <label for="shipToPostalCode">${uiLabelMap.PartyZipCode}* <span id="advice-required-shipToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <input type="text" name="shipToPostalCode" id="shipToPostalCode" class="required" value="${parameters.shipToPostalCode!}" maxlength="10" />
-          </div>
-          <div>
-            <label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}* <span id="advice-required-shipToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <div>
-              <select name="shipToCountryGeoId" id="shipToCountryGeoId">
-                <#if shipToCountryGeoId??>
-                  <option value="${shipToCountryGeoId!}">${shipToCountryProvinceGeo!(shipToCountryGeoId!)}</option>
-                </#if>
-                ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-              </select>
-            </div>
-          </div>
-          <div id='shipToStates'>
-            <label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*<span id="advice-required-shipToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-            <div>
-              <select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
-                <#if shipToStateProvinceGeoId?has_content>
-                  <option value='${shipToStateProvinceGeoId!}'>${shipToStateProvinceGeo!(shipToStateProvinceGeoId!)}</option>
-                <#else>
-                  <option value="_NA_">${uiLabelMap.PartyNoState}</option>
-                </#if>
-              </select>
-            </div>
-          </div>
-          <div>
-            <label>${uiLabelMap.PartyPhoneNumber}*</label>
-            <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"></span>
-            <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"></span>
-            <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"></span>
-            <span id="shipToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-            <input type="text" name="shipToCountryCode" id="shipToCountryCode" value="${parameters.shipToCountryCode!}" size="3" maxlength="3" />
-            - <input type="text" name="shipToAreaCode" id="shipToAreaCode" value="${parameters.shipToAreaCode!}" size="3" maxlength="3" />
-            - <input type="text" name="shipToContactNumber" id="shipToContactNumber" value="${contactNumber?default("${parameters.shipToContactNumber!}")}" size="6" maxlength="7" />
-            - <input type="text" name="shipToExtension" id="shipToExtension" value="${extension?default("${parameters.shipToExtension!}")}" size="3" maxlength="3" />
-          </div>
-          <div class="inline">
-            <input type="checkbox" class="checkbox" name="useShippingAddressForBilling" id="useShippingAddressForBilling" value="Y" <#if parameters.useShippingAddressForBilling?has_content && parameters.useShippingAddressForBilling?default("")=="Y">checked="checked"</#if> />
-            <label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
-          </div>
+        </div>
+        <div>
+          <label>${uiLabelMap.PartyPhoneNumber}*</label>
+          <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
+          <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
+          <span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
+          <span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+          <input type="text" name="billToCountryCode" id="billToCountryCode" value="${parameters.billToCountryCode!}"
+              size="3" maxlength="3"/>
+          - <input type="text" name="billToAreaCode" id="billToAreaCode" value="${parameters.billToAreaCode!}" size="3"
+                maxlength="3"/>
+          - <input type="text" name="billToContactNumber" id="billToContactNumber"
+                value="${contactNumber?default("${parameters.billToContactNumber!}")}" size="6" maxlength="7"/>
+          - <input type="text" name="billToExtension" id="billToExtension"
+                value="${extension?default("${parameters.billToExtension!}")}" size="3" maxlength="3"/>
+        </div>
       </fieldset>
-      <fieldset class="center right" id="billingAddress">
-          <legend>${uiLabelMap.PageTitleBillingInformation}</legend>
-            <div>
-              <label for="billToAddress1">${uiLabelMap.PartyAddressLine1}* <span id="advice-required-billToAddress1" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="text" name="billToAddress1" id="billToAddress1" class="required" value="${parameters.billToAddress1!}" />
-            </div>
-            <div>
-              <label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-              <input type="text" name="billToAddress2" id="billToAddress2" value="${parameters.billToAddress2!}" />
-            </div>
-            <div>
-              <label for="billToCity">${uiLabelMap.CommonCity}*<span id="advice-required-billToCity" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="text" name="billToCity" id="billToCity" class="required" value="${parameters.billToCity!}" />
-            </div>
-            <div>
-              <label for="billToPostalCode">${uiLabelMap.PartyZipCode}* <span id="advice-required-billToPostalCode" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <input type="text" name="billToPostalCode" id="billToPostalCode" class="required" value="${parameters.billToPostalCode!}" maxlength="10" />
-            </div>
-            <div>
-              <label for="billToCountryGeoId">${uiLabelMap.CommonCountry}* <span id="advice-required-billToCountryGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <select name="billToCountryGeoId" id="billToCountryGeoId" class='required selectBox'>
-              <#if billToCountryGeoId??>
-                <option value='${billToCountryGeoId!}'>${billToCountryProvinceGeo!(billToCountryGeoId!)}</option>
-              </#if>
-                ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-              </select>
-            </div>
-            <div id='billToStates'>
-              <label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*<span id="advice-required-billToStateProvinceGeoId" style="display: none" class="errorMessage">(${uiLabelMap.CommonRequired})</span></label>
-              <div>
-                <select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
-                <#if billToStateProvinceGeoId?has_content>
-                  <option value='${billToStateProvinceGeoId!}'>${billToStateProvinceGeo!(billToStateProvinceGeoId!)}</option>
-                <#else>
-                  <option value="_NA_">${uiLabelMap.PartyNoState}</option>
-                </#if>
-                </select>
-              </div>
-            </div>
-            <div>
-              <label>${uiLabelMap.PartyPhoneNumber}*</label>
-              <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"></span>
-              <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"></span>
-              <span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"></span>
-              <span id="billToPhoneRequired" style="display: none;" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-              <input type="text" name="billToCountryCode" id="billToCountryCode" value="${parameters.billToCountryCode!}" size="3" maxlength="3"/>
-              - <input type="text" name="billToAreaCode" id="billToAreaCode" value="${parameters.billToAreaCode!}" size="3" maxlength="3"/>
-              - <input type="text" name="billToContactNumber" id="billToContactNumber" value="${contactNumber?default("${parameters.billToContactNumber!}")}" size="6" maxlength="7"/>
-              - <input type="text" name="billToExtension" id="billToExtension" value="${extension?default("${parameters.billToExtension!}")}" size="3" maxlength="3"/>
-            </div>
-      </fieldset>
       <div><a id="submitNewUserForm" href="javascript:void(0);" class="button">${uiLabelMap.CommonSubmit}</a></div>
     </form>
   </div>
Index: specialpurpose/ecommerce/template/customer/profile/ViewProfile.ftl
===================================================================
--- specialpurpose/ecommerce/template/customer/profile/ViewProfile.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/customer/profile/ViewProfile.ftl	(working copy)
@@ -39,63 +39,63 @@
       <div class="left center">
         <h3>${uiLabelMap.EcommercePrimaryShippingAddress}</h3>
           <ul>
-          <#if shipToContactMechId??>
-            <li>${shipToAddress1!}</li>
-            <#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
-            <li>
-              <ul>
+            <#if shipToContactMechId??>
+              <li>${shipToAddress1!}</li>
+              <#if shipToAddress2?has_content><li>${shipToAddress2!}</li></#if>
                 <li>
-                  <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
-                    ${shipToStateProvinceGeoId}
-                  </#if>
-                  ${shipToCity!},
-                  ${shipToPostalCode!}
+                  <ul>
+                    <li>
+                      <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_">
+                        ${shipToStateProvinceGeoId}
+                      </#if>
+                      ${shipToCity!},
+                      ${shipToPostalCode!}
+                    </li>
+                    <li>${shipToCountryGeoId!}</li>
+                  </ul>
                 </li>
-                <li>${shipToCountryGeoId!}</li>
-              </ul>
-            </li>
-            <#if shipToTelecomNumber?has_content>
-            <li>
-              ${shipToTelecomNumber.countryCode!}-
-              ${shipToTelecomNumber.areaCode!}-
-              ${shipToTelecomNumber.contactNumber!}
-              <#if shipToExtension??>-${shipToExtension!}</#if>
-            </li>
+              <#if shipToTelecomNumber?has_content>
+                <li>
+                  ${shipToTelecomNumber.countryCode!}-
+                  ${shipToTelecomNumber.areaCode!}-
+                  ${shipToTelecomNumber.contactNumber!}
+                  <#if shipToExtension??>-${shipToExtension!}</#if>
+                </li>
+              </#if>
+            <#else>
+              <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
             </#if>
-          <#else>
-            <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
-          </#if>
           </ul>
       </div>
       <div class="right center">
         <h3>${uiLabelMap.EcommercePrimaryBillingAddress}</h3>
           <ul>
-          <#if billToContactMechId??>
-            <li>${billToAddress1!}</li>
-            <#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
-            <li>
-              <ul>
+            <#if billToContactMechId??>
+              <li>${billToAddress1!}</li>
+              <#if billToAddress2?has_content><li>${billToAddress2!}</li></#if>
                 <li>
-                  <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
-                    ${billToStateProvinceGeoId}
-                  </#if>
-                  ${billToCity!},
-                  ${billToPostalCode!}
+                  <ul>
+                    <li>
+                      <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_">
+                        ${billToStateProvinceGeoId}
+                      </#if>
+                      ${billToCity!},
+                      ${billToPostalCode!}
+                    </li>
+                    <li>${billToCountryGeoId!}</li>
+                  </ul>
                 </li>
-                <li>${billToCountryGeoId!}</li>
-              </ul>
-            </li>
-            <#if billToTelecomNumber?has_content>
-            <li>
-              ${billToTelecomNumber.countryCode!}-
-              ${billToTelecomNumber.areaCode!}-
-              ${billToTelecomNumber.contactNumber!}
-              <#if billToExtension??>-${billToExtension!}</#if>
-            </li>
+              <#if billToTelecomNumber?has_content>
+                <li>
+                  ${billToTelecomNumber.countryCode!}-
+                  ${billToTelecomNumber.areaCode!}-
+                  ${billToTelecomNumber.contactNumber!}
+                  <#if billToExtension??>-${billToExtension!}</#if>
+                </li>
+              </#if>
+            <#else>
+              <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
             </#if>
-          <#else>
-            <li>${uiLabelMap.PartyPostalInformationNotFound}</li>
-          </#if>
           </ul>
       </div>
     </div>
Index: specialpurpose/ecommerce/template/data/Content.ftl
===================================================================
--- specialpurpose/ecommerce/template/data/Content.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/data/Content.ftl	(working copy)
@@ -19,23 +19,28 @@
 -->
 
 <entity-engine-xml>
-<DataSource dataSourceId="ECM" dataSourceTypeId="CONTENT_CREATION" description="Ecommerce Content"/>
-<#recurse doc>
+  <DataSource dataSourceId="ECM" dataSourceTypeId="CONTENT_CREATION" description="Ecommerce Content"/>
+  <#recurse doc>
 </entity-engine-xml>
 
 <#macro contents>
-<#recurse .node>
+  <#recurse .node>
 </#macro>
 
 <#macro content>
-    <#assign contentId="ECMC" + .node.@id[0]/>
-    <DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE" dataSourceId="ECM" mimeTypeId="text/xml"/>
-    <ElectronicText dataResourceId="${contentId}">
-<textData><![CDATA[
-${.node.content_text}
-]]></textData>
-    </ElectronicText>
-    <Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}" contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/html" templateDataResourceId="TPL_XML_MB"/>
+  <#assign contentId="ECMC" + .node.@id[0]/>
+  <DataResource dataResourceId="${contentId}" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="NONE"
+              dataSourceId="ECM" mimeTypeId="text/xml"/>
+  <ElectronicText dataResourceId="${contentId}">
+    <textData>
+      <![CDATA[
+        ${.node.content_text}
+      ]]>
+    </textData>
+  </ElectronicText>
+  <Content contentId="${contentId}" contentTypeId="DOCUMENT" dataResourceId="${contentId}"
+      contentName="${.node.@name[0]}" description="${.node.content_desc?html}" mimeTypeId="text/html"
+      templateDataResourceId="TPL_XML_MB"/>
 </#macro>
 
 <#macro @element>
Index: specialpurpose/ecommerce/template/data/Topic.ftl
===================================================================
--- specialpurpose/ecommerce/template/data/Topic.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/data/Topic.ftl	(working copy)
@@ -19,23 +19,25 @@
 -->
 
 <entity-engine-xml>
-<#recurse doc>
+  <#recurse doc>
 </entity-engine-xml>
 
 <#macro topics>
-<#recurse .node>
+  <#recurse .node>
 </#macro>
 
 <#macro topic>
-    <#assign contentId="ECMT" + .node.@id[0]/>
-    <Content contentId="${contentId}" contentTypeId="WEB_SITE_PUB_PT" contentName="${.node.topic_heading}" description="${.node.topic_desc?html}" ownerContentId=""/>
-    <#assign internalName=.node.@name[0]/>
-    <#assign internalNameParts=internalName?split(".")/>
-    <#assign firstPart=internalNameParts[0] />
-    <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
-    <#if firstPart == "WIDGETS">
-        <ContentAssoc contentId="CNTWIDGETS" contentIdTo="${contentId}" contentAssocTypeId="SUB_CONTENT" fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
-    </#if>
+  <#assign contentId="ECMT" + .node.@id[0]/>
+  <Content contentId="${contentId}" contentTypeId="WEB_SITE_PUB_PT" contentName="${.node.topic_heading}"
+      description="${.node.topic_desc?html}" ownerContentId=""/>
+  <#assign internalName=.node.@name[0]/>
+  <#assign internalNameParts=internalName?split(".")/>
+  <#assign firstPart=internalNameParts[0] />
+  <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
+  <#if firstPart == "WIDGETS">
+    <ContentAssoc contentId="CNTWIDGETS" contentIdTo="${contentId}" contentAssocTypeId="SUB_CONTENT"
+        fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
+  </#if>
 </#macro>
 
 <#macro @element>
Index: specialpurpose/ecommerce/template/data/Tree.ftl
===================================================================
--- specialpurpose/ecommerce/template/data/Tree.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/data/Tree.ftl	(working copy)
@@ -19,27 +19,28 @@
 -->
 
 <entity-engine-xml>
-<#recurse doc>
+  <#recurse doc>
 </entity-engine-xml>
 
 <#macro topic_tree>
-<#recurse .node>
+  <#recurse .node>
 </#macro>
 
 <#macro topic>
-    <#assign contentId="ECMT" + .node.@id[0]/>
-    <#recurse .node>
+  <#assign contentId="ECMT" + .node.@id[0]/>
+  <#recurse .node>
 </#macro>
 
 <#macro child>
-    <#assign contentIdTo="ECMT" + .node.@id[0]/>
-    <#assign assocType="SUB_CONTENT"/>
-    <#if .node.@type = "content">
-        <#assign contentIdTo="ECMC" + .node.@id[0]/>
-        <#assign assocType="PUBLISH_LINK"/>
-    </#if>
-    <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
-    <ContentAssoc contentIdTo="${contentIdTo}" contentId="${contentId}" contentAssocTypeId="${assocType}" fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
+  <#assign contentIdTo="ECMT" + .node.@id[0]/>
+  <#assign assocType="SUB_CONTENT"/>
+  <#if .node.@type = "content">
+    <#assign contentIdTo="ECMC" + .node.@id[0]/>
+    <#assign assocType="PUBLISH_LINK"/>
+  </#if>
+  <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
+  <ContentAssoc contentIdTo="${contentIdTo}" contentId="${contentId}" contentAssocTypeId="${assocType}"
+      fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
 </#macro>
 
 <#macro @element>
Index: specialpurpose/ecommerce/template/email/ContactListEmailTemplate.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactListEmailTemplate.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactListEmailTemplate.ftl	(working copy)
@@ -17,22 +17,22 @@
 under the License.
 -->
 <html xmlns="http://www.w3.org/1999/xhtml">
-    <body>
-        <div>
-            ${content}
-        </div>
-        <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
-        <form method="post" action="${verifyUrl}">
-            <fieldset>
-                <label>E-mail: ${emailAddress}</label>
-                <input type="hidden" name="contactListId" value="${contactListId}" />
-                <input type="hidden" name="partyId" value="${partyId}" />
-                <input type="hidden" name="preferredContactMechId" value="${preferredContactMechId!}" />
-                <input type="hidden" name="fromDate" value="${fromDate}" />
-                <input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING" />
-                <input type="hidden" name="optInVerifyCode" value="${optInVerifyCode!}" />
-                <input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription." />
-            </fieldset>
-        </form>
-    </body>
+  <body>
+    <div>
+      ${content}
+    </div>
+    <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
+    <form method="post" action="${verifyUrl}">
+      <fieldset>
+        <label>E-mail: ${emailAddress}</label>
+        <input type="hidden" name="contactListId" value="${contactListId}"/>
+        <input type="hidden" name="partyId" value="${partyId}"/>
+        <input type="hidden" name="preferredContactMechId" value="${preferredContactMechId!}"/>
+        <input type="hidden" name="fromDate" value="${fromDate}"/>
+        <input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING"/>
+        <input type="hidden" name="optInVerifyCode" value="${optInVerifyCode!}"/>
+        <input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription."/>
+      </fieldset>
+    </form>
+  </body>
 </html>
Index: specialpurpose/ecommerce/template/email/ContactListSubscribeEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactListSubscribeEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactListSubscribeEmail.ftl	(working copy)
@@ -17,15 +17,14 @@
 under the License.
 -->
 <html xmlns="http://www.w3.org/1999/xhtml">
-  <body>
-    <p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
-    <p>Successfully subscribed from ${contactList.contactListName} contact list.</p>
+<body>
+  <p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
+  <p>Successfully subscribed from ${contactList.contactListName} contact list.</p>
 
-    <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
-    <#if (contactListParty.preferredContactMechId)??>
-        <#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
-    </#if>
-    <a href="${verifyUrl}">If this was by mistake, click here to unsubscribe your subscription again.</a>
-
-  </body>
+  <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
+  <#if (contactListParty.preferredContactMechId)??>
+    <#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
+  </#if>
+  <a href="${verifyUrl}">If this was by mistake, click here to unsubscribe your subscription again.</a>
+</body>
 </html>
Index: specialpurpose/ecommerce/template/email/ContactListUnsubscribeEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactListUnsubscribeEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactListUnsubscribeEmail.ftl	(working copy)
@@ -27,7 +27,5 @@
     </#if>
     <a href="${verifyUrl}">If this was by mistake, click here subscribe again.</a-->
 
-
-
   </body>
 </html>
Index: specialpurpose/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl	(working copy)
@@ -16,26 +16,26 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
-    <head>
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title!}</title>
-    </head>
-    <body>
-    
-        <#-- custom logo or text can be inserted here -->
-        <h1>${title!}</h1>
-        <#if note??><p>${note}</p></#if>
-        
-        <p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
-        <p>We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
-        <p>To complete your unsubscription click the on the following link:</p>
-        
-        <#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&amp;communicationEventId='+communicationEventId!+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBSCRIBED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode>
-        <#if (contactListParty.preferredContactMechId)??>
-            <#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
-        </#if>
-        <a href="${verifyUrl}">Please click here to verify your unsubscription.</a>
-    </body>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <title>${title!}</title>
+</head>
+<body>
+  <#-- custom logo or text can be inserted here -->
+  <h1>${title!}</h1>
+  <#if note??><p>${note}</p></#if>
+
+  <p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
+  <p>We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
+  <p>To complete your unsubscription click the on the following link:</p>
+
+  <#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&amp;communicationEventId='+communicationEventId!+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBSCRIBED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode>
+  <#if (contactListParty.preferredContactMechId)??>
+    <#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
+  </#if>
+  <a href="${verifyUrl}">Please click here to verify your unsubscription.</a>
+</body>
 </html>
Index: specialpurpose/ecommerce/template/email/ContactListVerifyEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactListVerifyEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactListVerifyEmail.ftl	(working copy)
@@ -16,27 +16,26 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-    <title>${title!}</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <title>${title!}</title>
 </head>
 <body>
+  <#-- custom logo or text can be inserted here -->
+  <h1>${title!}</h1>
+  <#if note??><p>${note}</p></#if>
 
-<#-- custom logo or text can be inserted here -->
-<h1>${title!}</h1>
-<#if note??><p>${note}</p></#if>
+  <p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
+  <p>We have received a request for subscription to the ${contactList.contactListName} contact list.</p>
+  <p>To complete your subscription click the on the following link:</p>
 
-<p>Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!</p>
-<p>We have received a request for subscription to the ${contactList.contactListName} contact list.</p>
-<p>To complete your subscription click the on the following link:</p>
-
-<#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_ACCEPTED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
-<#if (contactListParty.preferredContactMechId)??>
+  <#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_ACCEPTED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>
+  <#if (contactListParty.preferredContactMechId)??>
     <#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
-</#if>
-<a href="${verifyUrl}">Please click here to verify your subscription.</a>
-
+  </#if>
+  <a href="${verifyUrl}">Please click here to verify your subscription.</a>
 </body>
 </html>
Index: specialpurpose/ecommerce/template/email/ContactUsEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ContactUsEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ContactUsEmail.ftl	(working copy)
@@ -18,11 +18,11 @@
 -->
 
 <html xmlns="http://www.w3.org/1999/xhtml">
-  <head></head>
-  <body>
-    <p>The information filled by the person on contact us page is as follows:</p>
-    <p>${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}</p>
-    <p>${uiLabelMap.CommonEmail}: ${parameters.email!}</p>
-    <p>${uiLabelMap.CommonMessage}: ${parameters.message!}</p>
-  </body>
+<head></head>
+<body>
+  <p>The information filled by the person on contact us page is as follows:</p>
+  <p>${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}</p>
+  <p>${uiLabelMap.CommonEmail}: ${parameters.email!}</p>
+  <p>${uiLabelMap.CommonMessage}: ${parameters.message!}</p>
+</body>
 </html>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/email/EmailPayRetry.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/EmailPayRetry.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/EmailPayRetry.ftl	(working copy)
@@ -17,13 +17,14 @@
 under the License.
 -->
 
-<br />
+<br/>
 <#if orderHeader.statusId == "ORDER_REJECTED">
-    ${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.<br />
-    ${uiLabelMap.OrderEmailProblemCancelledNotProcessed}<br />
+  ${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.<br/>
+  ${uiLabelMap.OrderEmailProblemCancelledNotProcessed}<br/>
 <#elseif orderHeader.statusId == "ORDER_APPROVED">
-    ${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted}
+  ${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted}
 <#else>
-      ${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.<br />
+  ${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.<br/>
 </#if>
-    <br />${uiLabelMap.OrderEmailCustomerService} (email@email.com)<br /> <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 -->
+<br/>${uiLabelMap.OrderEmailCustomerService} (email@email.com)
+<br/> <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 -->
Index: specialpurpose/ecommerce/template/email/GiftCardPurchase.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/GiftCardPurchase.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/GiftCardPurchase.ftl	(working copy)
@@ -23,16 +23,17 @@
  -->
 
 <#if recipientName??>${recipientName},</#if>
-<br />
+<br/>
 
 <#-- MyCompany.com (not a variable why?) must be adapted - JLR 1/6/5 -->
-${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com <#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}</#if>!
-<br /><br />
+${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com
+<#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}</#if>!
+<br/><br/>
 <#if giftMessage?has_content>
   ${uiLabelMap.OrderGiftMessage}
-  <br /><br />
+  <br/><br/>
   ${giftMessage}
-  <br /><br />
+  <br/><br/>
 </#if>
 
 <pre>
Index: specialpurpose/ecommerce/template/email/GiftCardReload.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/GiftCardReload.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/GiftCardReload.ftl	(working copy)
@@ -37,16 +37,16 @@
 
 <#if processResult>
   <#-- success -->
-  <br />
+  <br/>
   ${uiLabelMap.EcommerceYourGiftCard} ${displayNumber} ${uiLabelMap.EcommerceYourGiftCardReloaded}
-  <br />
+  <br/>
   ${uiLabelMap.EcommerceGiftCardNewBalance} ${amount} ${uiLabelMap.CommonFrom} ${previousAmount}
-  <br />
+  <br/>
 <#else>
   <#-- fail -->
-  <br />
+  <br/>
   ${uiLabelMap.EcommerceGiftCardReloadFailed} ${responseCode}
-  <br />
+  <br/>
   ${uiLabelMap.EcommerceGiftCardRefunded}
-  <br />
+  <br/>
 </#if>
Index: specialpurpose/ecommerce/template/email/OrderNoticeEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/OrderNoticeEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/OrderNoticeEmail.ftl	(working copy)
@@ -17,129 +17,127 @@
 under the License.
 -->
 
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-    <title>${title!}</title>
-    <#-- this needs to be fully qualified to appear in email; the server must also be available -->
-    <style type="text/css">
-        html, body, div, h1, h3, a, ul,
-        li, table, tbody, tfoot, thead,
-        tr, th, td {
-            border:0;
-            margin:0;
-            outline:0;
-            padding:0;
-            font-size: 100%;
-            background:transparent;
-            vertical-align: baseline;
-        }
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <title>${title!}</title>
+  <#-- this needs to be fully qualified to appear in email; the server must also be available -->
+  <style type="text/css">
+    html, body, div, h1, h3, a, ul,
+    li, table, tbody, tfoot, thead,
+    tr, th, td {
+      border: 0;
+      margin: 0;
+      outline: 0;
+      padding: 0;
+      font-size: 100%;
+      background: transparent;
+      vertical-align: baseline;
+    }
 
-        a, body, th {
-            font-style: normal;
-            font-weight: normal;
-            text-decoration: none;
-        }
+    a, body, th {
+      font-style: normal;
+      font-weight: normal;
+      text-decoration: none;
+    }
 
-        body, th {
-            text-align: left;
-        }
+    body, th {
+      text-align: left;
+    }
 
-        ul {
-            list-style: none;
-        }
+    ul {
+      list-style: none;
+    }
 
-        div.screenlet {
-            background-color: #FFFFFF;
-            border: 0.1em solid #999999;
-            height: auto !important;
-            height: 1%;
-            margin-bottom: 1em;
-        }
+    div.screenlet {
+      background-color: #FFFFFF;
+      border: 0.1em solid #999999;
+      height: auto !important;
+      height: 1%;
+      margin-bottom: 1em;
+    }
 
-        body {
-            background: #D4D0C8;
-            font-size: 62.5%;
-            position: relative;
-            line-height: 1;
-            color: black;
-            font-family: Verdana, Arial, Helvetica, sans-serif;
-        }
+    body {
+      background: #D4D0C8;
+      font-size: 62.5%;
+      position: relative;
+      line-height: 1;
+      color: black;
+      font-family: Verdana, Arial, Helvetica, sans-serif;
+    }
 
-        h1 {
-            font-size: 1.6em;
-            font-weight: bold;
-        }
+    h1 {
+      font-size: 1.6em;
+      font-weight: bold;
+    }
 
-        h3 {
-            font-size: 1.1em;
-            font-weight: bold;
-        }
+    h3 {
+      font-size: 1.1em;
+      font-weight: bold;
+    }
 
-        /* IE7 fix */
-        table {
-            font-size: 1em;
-        }
+    /* IE7 fix */
+    table {
+      font-size: 1em;
+    }
 
-        div.screenlet ul {
-            margin: 10px;
-        }
+    div.screenlet ul {
+      margin: 10px;
+    }
 
-        div.screenlet li {
-            line-height: 15px;
-        }
+    div.screenlet li {
+      line-height: 15px;
+    }
 
-        div.screenlet h3 {
-            background:#1C334D none repeat scroll 0 0;
-            color:#FFFFFF;
-            height:auto !important;
-            padding:3px 4px 4px;
-        }
+    div.screenlet h3 {
+      background: #1C334D none repeat scroll 0 0;
+      color: #FFFFFF;
+      height: auto !important;
+      padding: 3px 4px 4px;
+    }
 
-        .columnLeft {
-            width: 45%;
-            float: left;
-            margin-right: 10px; 
-        }
+    .columnLeft {
+      width: 45%;
+      float: left;
+      margin-right: 10px;
+    }
 
-        .columnRight {
-            width: 45%;
-            float: left;
-            margin-left: 10px;
-            clear: none;
-        }
+    .columnRight {
+      width: 45%;
+      float: left;
+      margin-left: 10px;
+      clear: none;
+    }
 
-        div.screenlet table {
-            width: 100%;
-            margin: 10px;
-        }
+    div.screenlet table {
+      width: 100%;
+      margin: 10px;
+    }
 
-        div.screenlet table tfoot th {
-            text-align: right;
-            font-weight: bold;
-        }
+    div.screenlet table tfoot th {
+      text-align: right;
+      font-weight: bold;
+    }
 
-        .clearBoth {
-            clear: both;
-        }
-    </style>
+    .clearBoth {
+      clear: both;
+    }
+  </style>
 </head>
 
 <body>
-
-<#-- custom logo or text can be inserted here -->
-
-<h1>${title!}</h1>
-<#if !isDemoStore?? || isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
-<#if note??><p>${note}</p></#if>
-<#if orderHeader??>
-${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
-<br />
-${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
-<#else>
-<h1>Order not found with ID [${orderId!}], or not allowed to view.</h1>
-</#if>
-
+  <#-- custom logo or text can be inserted here -->
+  <h1>${title!}</h1>
+  <#if !isDemoStore?? || isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
+  <#if note??><p>${note}</p></#if>
+  <#if orderHeader??>
+  ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
+  <br/>
+  ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
+  <#else>
+  <h1>Order not found with ID [${orderId!}], or not allowed to view.</h1>
+  </#if>
 </body>
 </html>
Index: specialpurpose/ecommerce/template/email/ReturnAccept.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ReturnAccept.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ReturnAccept.ftl	(working copy)
@@ -18,17 +18,17 @@
 -->
 
 <#-- ReturnHeader and a List of ReturnItem records is available to this template -->
-<br />
+<br/>
 ${uiLabelMap.EcommerceReturnRequest}
-<br /><br />
+<br/><br/>
 <pre>
-<#list returnItems as item>
-  <#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
-  <#assign returnType = item.getRelatedOne("ReturnType", false)!>
-  ${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
-</#list>
+  <#list returnItems as item>
+    <#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
+    <#assign returnType = item.getRelatedOne("ReturnType", false)!>
+    ${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
+  </#list>
 </pre>
-<br /><br />
+<br/><br/>
 
 ${uiLabelMap.EcommerceReturnRequestAccepted} ${returnHeader.returnId}
-<br /><br />
+<br/><br/>
Index: specialpurpose/ecommerce/template/email/ShipmentNotificationEmail.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/ShipmentNotificationEmail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/ShipmentNotificationEmail.ftl	(working copy)
@@ -18,46 +18,52 @@
 -->
 
 <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/></#if>
-<#if shipment?has_content>
-  <div class="screenlet">
-    <div class="screenlet-title-bar">
-      <div class="h3">${title!}<br /><br /></div>
-    </div>
-    <table border="0" cellpadding="0" cellspacing="0">
-      <tbody>
-        <tr>
-          <td><b>${uiLabelMap.OrderTrackingNumber}</b></td>
-        </tr>
-        <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
+  <#if shipment?has_content>
+    <div class="screenlet">
+      <div class="screenlet-title-bar">
+        <div class="h3">${title!}<br/><br/></div>
+      </div>
+      <table border="0" cellpadding="0" cellspacing="0">
+        <tbody>
           <tr>
-            <td>
-              Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
-              <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId})</#if>
-            </td>
+            <td><b>${uiLabelMap.OrderTrackingNumber}</b></td>
           </tr>
-        </#list>
-      </tbody>
-    </table>
-    <br />
-    <div class="screenlet-title-bar">
-      <div class="h3"><b>${uiLabelMap.EcommerceShipmentItems}</b></div>
-    </div>
-    <div class="screenlet-body">
-      <table width="100%" border="0" cellpadding="0">
-        <tr valign="bottom">
-          <td width="35%"><span class="tableheadtext"><b>${uiLabelMap.OrderProduct}</b></span></td>
-          <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderQuantity}</b></span></td>
-        </tr>
-      <tr><td colspan="10"><hr /></td></tr>
-      <#list shipmentItems as shipmentItem>
-        <#assign productId = shipmentItem.productId>
-        <#assign product = shipmentItem.getRelatedOne("Product", false)>
-        <tr>
-          <td colspan="1" valign="top"> ${productId!} - ${product.internalName!}</td>
-          <td align="right" valign="top"> ${shipmentItem.quantity!}</td>
-        </tr>
-      </#list>
-      <tr><td colspan="10"><hr /></td></tr>
-    </table>
-  </div>
-</#if>
+          <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
+            <tr>
+              <td>
+                Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
+                <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}
+                  : ${orderShipmentInfoSummary.carrierPartyId})
+                </#if>
+              </td>
+            </tr>
+          </#list>
+        </tbody>
+      </table>
+      <br/>
+      <div class="screenlet-title-bar">
+        <div class="h3"><b>${uiLabelMap.EcommerceShipmentItems}</b></div>
+      </div>
+      <div class="screenlet-body">
+        <table width="100%" border="0" cellpadding="0">
+          <tr valign="bottom">
+            <td width="35%"><span class="tableheadtext"><b>${uiLabelMap.OrderProduct}</b></span></td>
+            <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderQuantity}</b></span></td>
+          </tr>
+          <tr>
+            <td colspan="10"><hr/></td>
+          </tr>
+          <#list shipmentItems as shipmentItem>
+            <#assign productId = shipmentItem.productId>
+            <#assign product = shipmentItem.getRelatedOne("Product", false)>
+            <tr>
+              <td colspan="1" valign="top"> ${productId!} - ${product.internalName!}</td>
+              <td align="right" valign="top"> ${shipmentItem.quantity!}</td>
+            </tr>
+          </#list>
+          <tr>
+            <td colspan="10"><hr/></td>
+          </tr>
+        </table>
+      </div>
+    </#if>
Index: specialpurpose/ecommerce/template/email/TellAFriend.ftl
===================================================================
--- specialpurpose/ecommerce/template/email/TellAFriend.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/email/TellAFriend.ftl	(working copy)
@@ -19,12 +19,12 @@
 <html>
 <head></head>
 <body>
-${sendTo},
-<br />
-${sendFrom} ${uiLabelMap.EcommerceFollowingMessage}
-<br /><br />
-<b>${message}</b>
-<br /><br />
-<a href="${pageUrl}">${pageUrl}</a>
+  ${sendTo},
+  <br />
+  ${sendFrom} ${uiLabelMap.EcommerceFollowingMessage}
+  <br /><br />
+  <b>${message}</b>
+  <br /><br />
+  <a href="${pageUrl}">${pageUrl}</a>
 </body>
 </html>
Index: specialpurpose/ecommerce/template/forum/BlogLib.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/BlogLib.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/BlogLib.ftl	(working copy)
@@ -18,178 +18,198 @@
 -->
 
 <#macro renderBlog contentId="" targetPurpose="" stdWrapId="">
-<#if contentId?has_content>
+  <#if contentId?has_content>
     <#assign contentIdx = contentId/>
-</#if>
-<#assign viewIdx = "" />
-<#if requestParameters.viewIndex?has_content>
-<#assign viewIdx = requestParameters.viewIndex! />
-</#if>
-<#assign viewSz = "" />
-<#if requestParameters.viewSize?has_content>
-<#assign viewSz = requestParameters.viewSize! />
-</#if>
-
-<#assign sz=0/>
-<table border="0">
-<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK"
-    pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))"
-    returnAfterPickWhen="purposes.contains(\"ARTICLE\")"
-    followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")">
-  <#assign thisNodeTrailCsv=nodeTrailCsv!/>
-  <#assign thisSubContentId=subContentId!/>
-  <#assign thisNode=globalNodeTrail?last/>
-  <#if thisNode?has_content>
-  <#assign thisOwnerContentId=thisNode.value.ownerContentId!/>
   </#if>
-
-  <#assign userLoginId=""/>
-  <#if content?has_content && content.createdByUserLogin?has_content>
-      <#assign userLoginId=content.createdByUserLogin/>
+  <#assign viewIdx = "" />
+  <#if requestParameters.viewIndex?has_content>
+    <#assign viewIdx = requestParameters.viewIndex! />
   </#if>
-  <#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/>
+  <#assign viewSz = "" />
+  <#if requestParameters.viewSize?has_content>
+    <#assign viewSz = requestParameters.viewSize! />
+  </#if>
 
-  <tr>
-    <td width="40px">&nbsp;</td>
-    <td class="blogtext" >
-      <div>
-        by:<#if authorName?has_content>${authorName!}
-        <#else>
-        <#if content?has_content>${content.createdByUserLogin!}</#if>
-        </#if>
-  &nbsp;
-        <#if thisNode?? && thisNode.fromDate??>
-          <#assign nowTime = thisNode.fromDate?string />
-          <#assign shortTime = ""/>
-          <#if nowTime?has_content>
-              <#assign lastColon=nowTime?last_index_of(":") - 1/>
-              <#assign shortTime=nowTime[0..lastColon]/>
-          </#if>
-          ${shortTime!}
-        </#if>
-      </div>
-    </td>
-    <td >
-        <#if content?has_content>${content.contentName!}</#if>
-        --
-        <#if content?has_content>${content.description!}</#if>
-    </td>
-    <td width="40px" valign="bottom">
-<a class="tabButton" href="<@ofbizUrl>showforumarticle?contentId=${thisSubContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}&amp;forumId=${contentIdx!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
-    </td>
-<@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE">
-    <td width="40px" valign="bottom">
-<a class="tabButton" style="height:14pt;" href="<@ofbizUrl>editforumarticle?contentIdTo=${content.contentId}&amp;nodeTrailCsv=${contentIdx!},${content.contentId}</@ofbizUrl>" >${uiLabelMap.CommonEdit}</a>
-    </td>
-</@checkPermission>
-  </tr>
-<#assign sz=listSize/>
+  <#assign sz=0/>
+  <table border="0">
+    <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK"
+        pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))"
+        returnAfterPickWhen="purposes.contains(\"ARTICLE\")"
+        followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")">
+      <#assign thisNodeTrailCsv=nodeTrailCsv!/>
+      <#assign thisSubContentId=subContentId!/>
+      <#assign thisNode=globalNodeTrail?last/>
+      <#if thisNode?has_content>
+        <#assign thisOwnerContentId=thisNode.value.ownerContentId!/>
+      </#if>
 
-</@loopSubContent>
+      <#assign userLoginId=""/>
+      <#if content?has_content && content.createdByUserLogin?has_content>
+        <#assign userLoginId=content.createdByUserLogin/>
+      </#if>
+      <#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/>
 
+      <tr>
+        <td width="40px">&nbsp;</td>
+        <td class="blogtext">
+          <div>
+            by:<#if authorName?has_content>${authorName!}
+          <#else>
+            <#if content?has_content>${content.createdByUserLogin!}</#if>
+          </#if>
+            &nbsp;
+            <#if thisNode?? && thisNode.fromDate??>
+              <#assign nowTime = thisNode.fromDate?string />
+              <#assign shortTime = ""/>
+              <#if nowTime?has_content>
+                <#assign lastColon=nowTime?last_index_of(":") - 1/>
+                <#assign shortTime=nowTime[0..lastColon]/>
+              </#if>
+            ${shortTime!}
+            </#if>
+          </div>
+        </td>
+        <td>
+          <#if content?has_content>${content.contentName!}</#if>
+          --
+          <#if content?has_content>${content.description!}</#if>
+        </td>
+        <td width="40px" valign="bottom">
+          <a class="tabButton"
+              href="<@ofbizUrl>showforumarticle?contentId=${thisSubContentId}&amp;nodeTrailCsv=${thisNodeTrailCsv!}&amp;forumId=${contentIdx!}</@ofbizUrl>">${uiLabelMap.CommonView}</a>
+        </td>
+        <@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE">
+          <td width="40px" valign="bottom">
+            <a class="tabButton" style="height:14pt;"
+                href="<@ofbizUrl>editforumarticle?contentIdTo=${content.contentId}&amp;nodeTrailCsv=${contentIdx!},${content.contentId}</@ofbizUrl>">${uiLabelMap.CommonEdit}</a>
+          </td>
+        </@checkPermission>
+      </tr>
+      <#assign sz=listSize/>
+    </@loopSubContent>
 
-<#if sz == 0 >
-  <tr><td align="center">${uiLabelMap.CommonNoRecordFound}</td></tr>
-</#if>
-<@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE">
-</@wrapSubContentCache>
-</table>
-<table border="0" class="summary">
-<#assign targOp="HAS_USER_ROLE"/>
-<#assign pageTargOp=targetOperation!/>
-<#if pageTargOp?has_content>
-    <#assign targOp=pageTargOp/>
-</#if>
-<@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
-<tr><td align="right">
-<a class="tabButton" style="height:14pt;" href="<@ofbizUrl>createforumarticle?forumId=${contentIdx!}&amp;nodeTrailCsv=${contentIdx!}</@ofbizUrl>" >${uiLabelMap.ProductNewArticle}</a>
-</td></tr>
-</@checkPermission>
-<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
-<tr><td align="right">
-${uiLabelMap.EcommerceLoggedToPost}
-</td></tr>
-</@checkPermission>
-</table>
-<#--
-<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED" targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE">
-            ${permissionErrorMsg!}
-</@checkPermission>
--->
-
+    <#if sz == 0 >
+      <tr>
+        <td align="center">${uiLabelMap.CommonNoRecordFound}</td>
+      </tr>
+    </#if>
+    <@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE">
+    </@wrapSubContentCache>
+  </table>
+  <table border="0" class="summary">
+    <#assign targOp="HAS_USER_ROLE"/>
+    <#assign pageTargOp=targetOperation!/>
+    <#if pageTargOp?has_content>
+      <#assign targOp=pageTargOp/>
+    </#if>
+    <@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED"
+        targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
+      <tr>
+        <td align="right">
+          <a class="tabButton" style="height:14pt;"
+              href="<@ofbizUrl>createforumarticle?forumId=${contentIdx!}&amp;nodeTrailCsv=${contentIdx!}</@ofbizUrl>">
+            ${uiLabelMap.ProductNewArticle}
+          </a>
+        </td>
+      </tr>
+    </@checkPermission>
+    <@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED"
+        targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx>
+      <tr>
+        <td align="right">
+          ${uiLabelMap.EcommerceLoggedToPost}
+        </td>
+      </tr>
+    </@checkPermission>
+  </table>
+  <#--
+  <@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED"
+      targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE">
+              ${permissionErrorMsg!}
+  </@checkPermission>
+  -->
 </#macro>
 
 <#macro renderAncestryPath trail startIndex=0 endIndexOffset=0 buttonTitle="${uiLabelMap.CommonBackTo}">
-    <#local indent = "">
-    <#local csv = "">
-    <#local counter = 0>
-    <#local len = trail?size>
-    <table border="0" cellspacing="4">
+  <#local indent = "">
+  <#local csv = "">
+  <#local counter = 0>
+  <#local len = trail?size>
+  <table border="0" cellspacing="4">
     <#list trail as content>
       <#if counter < (len - endIndexOffset) && startIndex <= counter >
         <#if 0 < counter >
-            <#local csv = csv + ","/>
+          <#local csv = csv + ","/>
         </#if>
         <#local csv = csv + content.contentId/>
         <#if counter < len && startIndex <= counter >
-       <tr>
-         <td >
-            ${indent}
+        <tr>
+          <td>
+          ${indent}
             <#if content.contentTypeId == "WEB_SITE_PUB_PT" >
-              <a class="tabButton" href="<@ofbizUrl>showforum?forumId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>showforum?forumId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>">${uiLabelMap.CommonBackTo}</a>
+              &nbsp;${content.contentName!}
             <#else>
-              <a class="tabButton" href="<@ofbizUrl>showforumarticle?contentId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}to</a> &nbsp;${content.contentName!}
+              <a class="tabButton"
+                  href="<@ofbizUrl>showforumarticle?contentId=${content.contentId!}&amp;nodeTrailCsv=${csv}</@ofbizUrl>">${uiLabelMap.CommonBackTo}
+                to</a> &nbsp;${content.contentName!}
             </#if>
             <#local indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
-            [${content.contentId!}]</td>
+            [${content.contentId!}]
+          </td>
         </#if>
-       </tr>
+      </tr>
       </#if>
       <#local counter = counter + 1>
-    <#if 20 < counter > <#break/></#if>
+      <#if 20 < counter > <#break/></#if>
     </#list>
-    </table>
+  </table>
 </#macro>
 
 <#macro nextPrev listSize requestURL queryString lowIndex=0 highIndex=10 viewSize=10 viewIndex=0 >
 
-<#assign lowIdx=lowIndex/>
-<#assign highIdx=highIndex/>
-<#assign viewSz=viewSize/>
-<#assign viewIdx=viewIndex/>
-<#assign listSz=listSize/>
+  <#assign lowIdx=lowIndex/>
+  <#assign highIdx=highIndex/>
+  <#assign viewSz=viewSize/>
+  <#assign viewIdx=viewIndex/>
+  <#assign listSz=listSize/>
 
-<#if !lowIdx?has_content><#assign lowIdx=0/></#if>
-<#if !highIdx?has_content><#assign highIdx=0/></#if>
-<#if !viewSz?has_content><#assign viewSz=10/></#if>
-<#if !viewIdx?has_content><#assign viewIdx=10/></#if>
-<#if !listSz?has_content><#assign listSz=0/></#if>
+  <#if !lowIdx?has_content><#assign lowIdx=0/></#if>
+  <#if !highIdx?has_content><#assign highIdx=0/></#if>
+  <#if !viewSz?has_content><#assign viewSz=10/></#if>
+  <#if !viewIdx?has_content><#assign viewIdx=10/></#if>
+  <#if !listSz?has_content><#assign listSz=0/></#if>
 
-<#if queryString?has_content>
+  <#if queryString?has_content>
     <#assign queryString = Static["org.apache.ofbiz.base.util.UtilHttp"].stripViewParamsFromQueryString(queryString)/>
-</#if>
+  </#if>
 
-<#assign lowIdxShow = lowIdx + 1 />
-<#if highIdx < lowIdxShow >
-  <#assign lowIdxShow = highIdx/>
-</#if>
-<table border="0" >
-<tr><td>
-             <#if 0 < listSz?number>
-                <#if 0 < viewIdx?number>
-                  <a href="${requestURL}?${queryString}&amp;viewSz=${viewSz}&amp;viewIdx=${viewIdx?number-1}" class="submenutext">${uiLabelMap.CommonPrevious}</a>
-                <#else>
-                  <span class="submenutextdisabled">${uiLabelMap.CommonPrevious}</span>
-                </#if>
-                <#if 0 < listSz>
-                  <span class="submenutextinfo">${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!}</span>
-                </#if>
-                <#if highIdx!?number < listSz!?number>
-                  <a href="${requestURL}?${queryString!}&amp;viewSz=${viewSz!}&amp;viewIdx=${viewIdx!?number+1}" class="submenutextright">${uiLabelMap.CommonNext}</a>
-                <#else>
-                  <span class="submenutextrightdisabled">${uiLabelMap.CommonNext}</span>
-                </#if>
-              </#if>
-</td></tr>
-    </table>
+  <#assign lowIdxShow = lowIdx + 1 />
+  <#if highIdx < lowIdxShow >
+    <#assign lowIdxShow = highIdx/>
+  </#if>
+  <table border="0">
+    <tr>
+      <td>
+        <#if 0 < listSz?number>
+          <#if 0 < viewIdx?number>
+            <a href="${requestURL}?${queryString}&amp;viewSz=${viewSz}&amp;viewIdx=${viewIdx?number-1}"
+                class="submenutext">${uiLabelMap.CommonPrevious}</a>
+          <#else>
+            <span class="submenutextdisabled">${uiLabelMap.CommonPrevious}</span>
+          </#if>
+          <#if 0 < listSz>
+            <span class="submenutextinfo">${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!}</span>
+          </#if>
+          <#if highIdx!?number < listSz!?number>
+            <a href="${requestURL}?${queryString!}&amp;viewSz=${viewSz!}&amp;viewIdx=${viewIdx!?number+1}"
+                class="submenutextright">${uiLabelMap.CommonNext}</a>
+          <#else>
+            <span class="submenutextrightdisabled">${uiLabelMap.CommonNext}</span>
+          </#if>
+        </#if>
+      </td>
+    </tr>
+  </table>
 </#macro>
Index: specialpurpose/ecommerce/template/forum/ForumPaging.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/ForumPaging.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/ForumPaging.ftl	(working copy)
@@ -22,27 +22,35 @@
 <#assign highIndex = viewIndex?int * viewSize?int + viewSize>
 <#--<br />== viewIndex: ${viewIndex} ==viewSize: ${viewSize} ==lowIndex: ${lowIndex}== highIndex: ${highIndex} == ListSize: ${listSize}-->
 <#if forumMessages?has_content && forumMessages?size gt 0>
-    <#assign listSize = forumMessages?size/>
-    <#if highIndex gt listSize><#assign highIndex = listSize></#if>
-    <div class="product-prevnext">
-      <#assign r = listSize / viewSize />
-      <#assign viewIndexMax = Static["java.lang.Math"].ceil(r)>
-      <select name="pageSelect" class="selectBox" onchange="window.location=this[this.selectedIndex].value;">
-        <option value="#">${uiLabelMap.CommonPage} ${viewIndex?int+1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
-        <#list 1..viewIndexMax as curViewNum>
-          <option value="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${curViewNum?int-1}</@ofbizUrl>">${uiLabelMap.CommonGotoPage} ${curViewNum}</option>
-        </#list>
-      </select>
-      <b>
-        <#if (viewIndex?int >0)>
-          <a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int-1}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrevious}</a> |
-        </#if>
-        <#if (listSize?int > 0)>
-          <span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
-        </#if>
-        <#if highIndex?int < listSize?int>
-          | <a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int+1}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonNext}</a>
-        </#if>
-      </b>
-   </div>
+  <#assign listSize = forumMessages?size/>
+  <#if highIndex gt listSize><#assign highIndex = listSize></#if>
+<div class="product-prevnext">
+  <#assign r = listSize / viewSize />
+  <#assign viewIndexMax = Static["java.lang.Math"].ceil(r)>
+  <select name="pageSelect" class="selectBox" onchange="window.location=this[this.selectedIndex].value;">
+    <option value="#">${uiLabelMap.CommonPage} ${viewIndex?int+1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
+      <#list 1..viewIndexMax as curViewNum>
+        <option
+            value="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${curViewNum?int-1}</@ofbizUrl>">
+          ${uiLabelMap.CommonGotoPage} ${curViewNum}
+        </option>
+      </#list>
+  </select>
+  <b>
+    <#if (viewIndex?int >0)>
+      <a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int-1}</@ofbizUrl>"
+          class="buttontext">
+        ${uiLabelMap.CommonPrevious}
+      </a> |
+    </#if>
+    <#if (listSize?int > 0)>
+      <span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
+    </#if>
+    <#if highIndex?int < listSize?int>
+      | <a
+        href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int+1}</@ofbizUrl>"
+        class="buttontext">${uiLabelMap.CommonNext}</a>
+    </#if>
+  </b>
+</div>
 </#if>
Index: specialpurpose/ecommerce/template/forum/Forums.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/Forums.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/Forums.ftl	(working copy)
@@ -26,11 +26,12 @@
   </div>
   <div class="screenlet-body">
     <ul class="browsecategorylist">
-      <#list forums as forum>
-        <li class="browsecategorytext">
-          <a href="<@ofbizUrl>showforum?forumId=${forum.contentId}</@ofbizUrl>" class="browsecategorybutton">${forum.contentName!forum.contentId}</a>
-        </li>
-      </#list>
+    <#list forums as forum>
+      <li class="browsecategorytext">
+        <a href="<@ofbizUrl>showforum?forumId=${forum.contentId}</@ofbizUrl>"
+            class="browsecategorybutton">${forum.contentName!forum.contentId}</a>
+      </li>
+    </#list>
     </ul>
   </div>
 </div>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/forum/MessageDisplay.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/MessageDisplay.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/MessageDisplay.ftl	(working copy)
@@ -16,38 +16,44 @@
 specific language governing permissions and limitations
 under the License.
 -->
-        <#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId -->
-        <#assign threadContentId = forumMessage.contentId/>
-        <#if forumMessage.caContentAssocTypeId == "RESPONSE">
-            <#assign threadContentId = forumMessage.ownerContentId!/>
+<#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId -->
+<#assign threadContentId = forumMessage.contentId/>
+<#if forumMessage.caContentAssocTypeId == "RESPONSE">
+  <#assign threadContentId = forumMessage.ownerContentId!/>
+</#if>
+<#if rsp??>
+  <#assign contentId = rsp.contentId>
+<#else>
+  <#assign contentId = forumMessage.contentId>
+</#if>
+<div class="tableheadtext">
+  ${uiLabelMap.CommonTitle} : ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!}
+  ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!}
+  <a href="ViewForumMessage?forumId=${parameters.forumId}&amp;responseContentId=${forumMessage.contentId}&amp;threadContentId=${threadContentId!}"
+      class="buttontext">${uiLabelMap.CommonView}</a>
+</div>
+<div class="tableheadtext">
+  ${forumMessage.description!}
+</div>
+
+<#--
+  <#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"]
+      .toMap("contentId", contentId, "userLogin", userLogin))/>
+  <#if (result.resultData)??>
+    <div class="tableheadtext">
+        ${uiLabelMap.CommonTitle}: ${result.resultData.content.description!}
+        ${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}:
+        ${result.resultData.content.createdDate.toString().substring(0,16)}
+        <a href="addForumMessage?forumId=${parameters.forumId}&amp;forumMessageIdTo=${result.resultData.content.contentId}&amp;threadView=${parameters.threadView!}"
+            class="buttontext">${uiLabelMap.PartyReply}</a>
+    </div>
+    <div>
+        <#if result.resultData.electronicText??>
+          ${result.resultData.electronicText.textData}
         </#if>
-        <#if rsp??>
-            <#assign contentId = rsp.contentId>
-        <#else>
-            <#assign contentId = forumMessage.contentId>
-        </#if>
-            <div class="tableheadtext">
-                ${uiLabelMap.CommonTitle}: ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!} ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!}
-                <a href="ViewForumMessage?forumId=${parameters.forumId}&amp;responseContentId=${forumMessage.contentId}&amp;threadContentId=${threadContentId!}" class="buttontext">${uiLabelMap.CommonView}</a>
-            </div>
-            <div class="tableheadtext">
-            ${forumMessage.description!}
-            </div>
-            
-        <#--
-          <#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", contentId, "userLogin", userLogin))/>
-          <#if (result.resultData)??>
-            <div class="tableheadtext">
-                ${uiLabelMap.CommonTitle}: ${result.resultData.content.description!} ${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}: ${result.resultData.content.createdDate.toString().substring(0,16)}
-                <a href="addForumMessage?forumId=${parameters.forumId}&amp;forumMessageIdTo=${result.resultData.content.contentId}&amp;threadView=${parameters.threadView!}" class="buttontext">${uiLabelMap.PartyReply}</a>
-            </div>
-            <div>
-                <#if result.resultData.electronicText??>
-                    ${result.resultData.electronicText.textData}
-                </#if>
-            </div>
-            <hr />
-          <#else>
-              <div> ${result.errorMessage!}</div>
-        </#if>
-        -->
+    </div>
+    <hr />
+  <#else>
+      <div> ${result.errorMessage!}</div>
+</#if>
+-->
Index: specialpurpose/ecommerce/template/forum/ShowForum.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/ShowForum.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/ShowForum.ftl	(working copy)
@@ -18,5 +18,5 @@
 -->
 
 <#list forumMessages! as forumMessage>
-    <#include "MessageDisplay.ftl">
+  <#include "MessageDisplay.ftl">
 </#list>
Index: specialpurpose/ecommerce/template/forum/ShowForumResponse.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/ShowForumResponse.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/ShowForumResponse.ftl	(working copy)
@@ -18,143 +18,156 @@
 -->
 
 <#import "BlogLib.ftl" as blog/>
-<div class="screenlet" >
-<h1>{${uiLabelMap.EcommerceFromSite}</h1><br />
-<div>
-<@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 />
-<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
-<#assign lastNode = globalNodeTrail!?last/>
-<#if lastNode?has_content>
-  <#assign subContent=lastNode.value/>
-<#else>
-<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/>
-<#assign dummy = globalNodeTrail.add(lastNode)/>
-</#if>
-<br />
-<h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:</h1><br />
+<div class="screenlet">
+  <h1>{${uiLabelMap.EcommerceFromSite}</h1><br/>
+  <div>
+    <@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 />
+    <#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
+    <#assign lastNode = globalNodeTrail!?last/>
+    <#if lastNode?has_content>
+      <#assign subContent=lastNode.value/>
+    <#else>
+      <#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"]
+          .toMap("contentId", subContentId), true)/>
+      <#assign dummy = globalNodeTrail.add(lastNode)/>
+    </#if>
+      <br/>
+      <h1>${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!}
+        - ${subContent.description!}:</h1><br/>
 
-<#assign thisContentId=subContentId!>
-<#if !thisContentId?has_content>
-    <#assign thisContentId=contentId!>
-</#if>
-<table border="0" width="100%" class="blogtext">
-    <tr>
-    <td width="40">&nbsp;</td>
-    <td>
-    <@renderSubContentCache subContentId=thisContentId />
-    </td>
-    <td width="40" valign="bottom">
-<@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" >
-<a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${subContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.EcommerceRespond}</a>
-</@checkPermission>
-<br />
+    <#assign thisContentId=subContentId!>
+    <#if !thisContentId?has_content>
+      <#assign thisContentId=contentId!>
+    </#if>
+      <table border="0" width="100%" class="blogtext">
+        <tr>
+          <td width="40">&nbsp;</td>
+          <td>
+            <@renderSubContentCache subContentId=thisContentId />
+          </td>
+          <td width="40" valign="bottom">
+            <@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" >
+              <a class="tabButton"
+                  href="<@ofbizUrl>createforumresponse?contentIdTo=${subContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
+                ${uiLabelMap.EcommerceRespond}
+              </a>
+            </@checkPermission>
+            <br/>
+          </td>
+        </tr>
+      </table>
+      <hr/>
+    <#--
+    <@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND"
+        contentPurposeList="RESPONSE" >
+      ${permissionErrorMsg!}
+    </@checkPermission>
+    -->
 
-    </td>
-    </tr>
-</table>
-<hr />
-<#--
-<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >
-            ${permissionErrorMsg!}
-</@checkPermission>
--->
-
-<table border="0" width="100%" class="tableheadtext">
-<!-- Note that the "...When" arguments in the loopSubContent must be compatible with those in
-     any embedded transformSubContent, because it will assume that the first node has already
-     had its conditions checked.
-     It is not convenient to have the traverseSubContent check or recheck the first node
-     because the associated ContentAssoc entity is not known.
--->
-        <h1>${uiLabelMap.EcommerceResponses}</h1><br />
-<@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey=""
-                pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"
-                followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">
-    <@traverseSubContentCache  contentAssocTypeId="RESPONSE"
-                            pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
-                            followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
-                            wrapTemplateId="">
-    <#assign indentStr=indent?default("0")/>
-    <#assign indent=indentStr?number/>
-    <#if 1 < indent >
-        <#assign fillRange=1..indent/>
-        <#assign indentFill=""/>
-        <#list fillRange as i>
+    <table border="0" width="100%" class="tableheadtext">
+      <!-- Note that the "...When" arguments in the loopSubContent must be compatible with those in
+           any embedded transformSubContent, because it will assume that the first node has already
+           had its conditions checked.
+           It is not convenient to have the traverseSubContent check or recheck the first node
+           because the associated ContentAssoc entity is not known.
+      -->
+      <h1>${uiLabelMap.EcommerceResponses}</h1><br/>
+    <@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey=""
+    pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"
+    followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">
+      <@traverseSubContentCache  contentAssocTypeId="RESPONSE"
+      pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
+      followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
+      wrapTemplateId="">
+        <#assign indentStr=indent?default("0")/>
+        <#assign indent=indentStr?number/>
+        <#if 1 < indent >
+          <#assign fillRange=1..indent/>
+          <#assign indentFill=""/>
+          <#list fillRange as i>
             <#assign indentFill = indentFill + "&nbsp;&nbsp;&nbsp;&nbsp;" />
-        </#list>
-        <#assign thisContentId = ""/>
-        <#if nodeTrailCsv??>
+          </#list>
+          <#assign thisContentId = ""/>
+          <#if nodeTrailCsv??>
             <#assign idList = nodeTrailCsv?split(",")/>
             <#if 0 < idList?size >
-                <#assign thisContentId = idList?last>
+              <#assign thisContentId = idList?last>
             </#if>
+          </#if>
+          <#if content??>
+            <tr>
+              <td>
+              ${indentFill}
+                <a class="tabButton"
+                   href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
+                  ${uiLabelMap.CommonView}
+                </a>
+              ${content.contentId!}-${content.description!}<br/>
+              </td>
+            </tr>
+          </#if>
         </#if>
-        <#if content??>
-  <tr>
-  <td>
-        ${indentFill}
-        <a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
-                     ${content.contentId!}-${content.description!}<br />
-  </td>
-  </tr>
-        </#if>
-    </#if>
-    </@traverseSubContentCache>
-</@loopSubContent>
+      </@traverseSubContentCache>
+    </@loopSubContent>
 
-<#--
-<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" >
-</@wrapSubContentCache >
--->
+    <#--
+    <@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" >
+    </@wrapSubContentCache >
+    -->
 
-</table>
+    </table>
+  </div>
 </div>
-</div>
 
 
 <#-- not used, will be deleted -->
 <#macro getCurrentContent >
-    <#assign globalNodeTrail=globalNodeTrail/>
-    <#if globalNodeTrail??>
-        <#assign currentNode=globalNodeTrail?last/>
-        <#if currentNode??>
-            <#assign currentValue=currentNode.value/>
-            <#if currentValue??>
-                <@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" >
-                    <@traverseSubContentCache  contentAssocTypeId="SUB_CONTENT"
-                            pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
-                            returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
-                            followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")"
-                            wrapTemplateId=""
-                        >
-                <#assign description=currentValue.description?default("No description")/>
-${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description}
-<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>
-                   </@traverseSubContentCache >
-                </@wrapSubContentCache>
-            </#if>
-        </#if>
+  <#assign globalNodeTrail=globalNodeTrail/>
+  <#if globalNodeTrail??>
+    <#assign currentNode=globalNodeTrail?last/>
+    <#if currentNode??>
+      <#assign currentValue=currentNode.value/>
+      <#if currentValue??>
+        <@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" >
+          <@traverseSubContentCache  contentAssocTypeId="SUB_CONTENT"
+              pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
+              returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"
+              followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")"
+              wrapTemplateId="">
+            <#assign description=currentValue.description?default("No description")/>
+            ${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description}
+            <a class="tabButton"
+                href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv!}</@ofbizUrl>">
+              ${uiLabelMap.CommonView}
+            </a>
+          </@traverseSubContentCache >
+        </@wrapSubContentCache>
+      </#if>
     </#if>
+  </#if>
 </#macro>
 
 <#macro renderSiteAncestryPath trail startIndex=0 >
-    <#assign indent = "">
-    <#assign csv = "">
-    <#assign counter = 0>
-    <#assign len = trail?size>
-    <table border="0" cellspacing="4">
+  <#assign indent = "">
+  <#assign csv = "">
+  <#assign counter = 0>
+  <#assign len = trail?size>
+  <table border="0" cellspacing="4">
     <#list trail as webSitePublishPoint>
-        <#if counter < len && startIndex <= counter >
-       <tr>
-         <td >
-            ${indent}
-            <a class="tabButton" href="<@ofbizUrl>main?pubPt=${webSitePublishPoint.contentId!}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${webSitePublishPoint.templateTitle!}
-                <#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
-         [${webSitePublishPoint.contentId!}]</td>
-        </#if>
-       </tr>
-        <#assign counter = counter + 1>
-    <#if 20 < counter > <#break/></#if>
+      <#if counter < len && startIndex <= counter >
+      <tr>
+        <td>
+          ${indent}
+          <a class="tabButton"
+             href="<@ofbizUrl>main?pubPt=${webSitePublishPoint.contentId!}</@ofbizUrl>">${uiLabelMap.CommonBackTo}</a>
+          &nbsp;${webSitePublishPoint.templateTitle!}
+          <#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
+          [${webSitePublishPoint.contentId!}]
+        </td>
+      </#if>
+    </tr>
+      <#assign counter = counter + 1>
+      <#if 20 < counter > <#break/></#if>
     </#list>
-    </table>
+  </table>
 </#macro>
Index: specialpurpose/ecommerce/template/forum/ViewComboResponse.ftl
===================================================================
--- specialpurpose/ecommerce/template/forum/ViewComboResponse.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/forum/ViewComboResponse.ftl	(working copy)
@@ -18,36 +18,40 @@
 -->
 
 <#if requestAttributes._ERROR_MESSAGE_??>
-<br /><div class='errorMessage'>${requestAttributes._ERROR_MESSAGE_}</div><br />
+  <br/>
+  <div class='errorMessage'>${requestAttributes._ERROR_MESSAGE_}</div><br/>
 <#else>
-    <#if trailList??>
-        <#assign indent = "">
-        <#assign csv = "">
-        <#assign counter = 1>
-        <#assign len = trailList?size>
-        <#list trailList as pair>
-        <#if 0 < csv?length >
-            <#assign csv = csv + ","/>
-        </#if>
-        <#assign csv = csv + pair[0]!/>
-            <#if counter < len>
-        ${indent}
-        ${pair[0]!} - ${pair[1]!}
-        <a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${pair[0]!}&nodeTrailCsv=${csv!}"></@ofbizUrl>${uiLabelMap.CommonView}</a> <br />
-            <#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
-            <#else>
-        
-        <u>${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:</u><br />
-            </#if>
-            <#assign counter = counter + 1>
-        </#list>
+  <#if trailList??>
+    <#assign indent = "">
+    <#assign csv = "">
+    <#assign counter = 1>
+    <#assign len = trailList?size>
+    <#list trailList as pair>
+      <#if 0 < csv?length >
+        <#assign csv = csv + ","/>
+      </#if>
+      <#assign csv = csv + pair[0]!/>
+      <#if counter < len>
+      ${indent}
+      ${pair[0]!} - ${pair[1]!}
+      <a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${pair[0]!}&nodeTrailCsv=${csv!}"></@ofbizUrl>
+        ${uiLabelMap.CommonView}
+      </a>
+      <br/>
+        <#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">
+      <#else>
 
-        <#if dataResourceId??>
-            <br />
-            <img src="<@ofbizUrl>img?imgId=${dataResourceId}</@ofbizUrl>" alt=""/>
-        </#if>
-        <br />
+      <u>${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:</u><br/>
+      </#if>
+      <#assign counter = counter + 1>
+    </#list>
+
+    <#if dataResourceId??>
+    <br/>
+    <img src="<@ofbizUrl>img?imgId=${dataResourceId}</@ofbizUrl>" alt=""/>
     </#if>
-    ${singleWrapper.renderFormString()}
-<br />
+  <br/>
+  </#if>
+  ${singleWrapper.renderFormString()}
+  <br/>
 </#if>
Index: specialpurpose/ecommerce/template/includes/Footer.ftl
===================================================================
--- specialpurpose/ecommerce/template/includes/Footer.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/includes/Footer.ftl	(working copy)
@@ -19,20 +19,25 @@
 
 <#assign nowTimestamp = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()>
 
-  <br />
-  <div class="footer">
-      <div>
-        <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/vcss.gif</@ofbizContentUrl>" alt="Valid CSS!"/></a>
-        <a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/valid-xhtml10.png</@ofbizContentUrl>" alt="Valid XHTML 1.0!"/></a>
-      </div>
-      <br />
-      <div>
-        <a href="http://ofbiz.apache.org">${uiLabelMap.EcommerceAboutUs}</a>
-        <div>Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation - <a href="http://www.apache.org">www.apache.org</a></div>
-        <div>Powered by <a href="http://ofbiz.apache.org">Apache OFBiz</a></div>
-        
-      </div>
-      <br />
-      <div><a href="<@ofbizUrl>policies</@ofbizUrl>">${uiLabelMap.EcommerceSeeStorePoliciesHere}</a></div>
+<br/>
+<div class="footer">
+  <div>
+    <a href="http://jigsaw.w3.org/css-validator/">
+      <img style="border:0;width:88px;height:31px" src="<@ofbizContentUrl>/images/vcss.gif</@ofbizContentUrl>" alt="Valid CSS!"/>
+    </a>
+    <a href="http://validator.w3.org/check?uri=referer">
+      <img style="border:0;width:88px;height:31px"src="<@ofbizContentUrl>/images/valid-xhtml10.png</@ofbizContentUrl>" alt="Valid XHTML 1.0!"/>
+    </a>
   </div>
+  <br/>
+  <div>
+    <a href="http://ofbiz.apache.org">${uiLabelMap.EcommerceAboutUs}</a>
+    <div>Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation -
+      <a href="http://www.apache.org">www.apache.org</a>
+    </div>
+    <div>Powered by <a href="http://ofbiz.apache.org">Apache OFBiz</a></div>
+  </div>
+  <br/>
+  <div><a href="<@ofbizUrl>policies</@ofbizUrl>">${uiLabelMap.EcommerceSeeStorePoliciesHere}</a></div>
+</div>
 
Index: specialpurpose/ecommerce/template/includes/Header.ftl
===================================================================
--- specialpurpose/ecommerce/template/includes/Header.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/includes/Header.ftl	(working copy)
@@ -18,64 +18,81 @@
 -->
 
 
-  <div id="ecom-header">
-    <div id="left">
-      <#if sessionAttributes.overrideLogo??>
-        <img src="<@ofbizContentUrl>${sessionAttributes.overrideLogo}</@ofbizContentUrl>" alt="Logo"/>
-      <#elseif catalogHeaderLogo??>
-        <img src="<@ofbizContentUrl>${catalogHeaderLogo}</@ofbizContentUrl>" alt="Logo"/>
-      <#elseif layoutSettings.VT_HDR_IMAGE_URL?has_content>
-        <img src="<@ofbizContentUrl>${layoutSettings.VT_HDR_IMAGE_URL.get(0)}</@ofbizContentUrl>" alt="Logo"/>
-      </#if>
-    </div>
-    <div id="right">
-      ${screens.render("component://ecommerce/widget/CartScreens.xml#microcart")}
-    </div>
-    <div id="middle">
-      <#if !productStore??>
-        <h2>${uiLabelMap.EcommerceNoProductStore}</h2>
-      </#if>
-      <#if (productStore.title)??><div id="company-name">${productStore.title}</div></#if>
-      <#if (productStore.subtitle)??><div id="company-subtitle">${productStore.subtitle}</div></#if>
-      <div id="welcome-message">
-        <#if sessionAttributes.autoName?has_content>
-          ${uiLabelMap.CommonWelcome}&nbsp;${sessionAttributes.autoName?html}!
-          (${uiLabelMap.CommonNotYou}?&nbsp;<a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="linktext">${uiLabelMap.CommonClickHere}</a>)
-        <#else>
-          ${uiLabelMap.CommonWelcome}!
-        </#if>
-      </div>
-    </div>
+<div id="ecom-header">
+  <div id="left">
+    <#if sessionAttributes.overrideLogo??>
+      <img src="<@ofbizContentUrl>${sessionAttributes.overrideLogo}</@ofbizContentUrl>" alt="Logo"/>
+    <#elseif catalogHeaderLogo??>
+      <img src="<@ofbizContentUrl>${catalogHeaderLogo}</@ofbizContentUrl>" alt="Logo"/>
+    <#elseif layoutSettings.VT_HDR_IMAGE_URL?has_content>
+      <img src="<@ofbizContentUrl>${layoutSettings.VT_HDR_IMAGE_URL.get(0)}</@ofbizContentUrl>" alt="Logo"/>
+    </#if>
   </div>
+  <div id="right">
+    ${screens.render("component://ecommerce/widget/CartScreens.xml#microcart")}
+  </div>
+  <div id="middle">
+    <#if !productStore??>
+      <h2>${uiLabelMap.EcommerceNoProductStore}</h2>
+    </#if>
+    <#if (productStore.title)??>
+      <div id="company-name">${productStore.title}</div>
+    </#if>
+    <#if (productStore.subtitle)??>
+      <div id="company-subtitle">${productStore.subtitle}</div>
+    </#if>
+    <div id="welcome-message">
+    <#if sessionAttributes.autoName?has_content>
+      ${uiLabelMap.CommonWelcome}&nbsp;${sessionAttributes.autoName?html}!
+      (${uiLabelMap.CommonNotYou}?&nbsp;
+      <a href="<@ofbizUrl>autoLogout</@ofbizUrl>" class="linktext">${uiLabelMap.CommonClickHere}</a>)
+    <#else>
+      ${uiLabelMap.CommonWelcome}!
+    </#if>
+  </div>
+  </div>
+</div>
 
-  <div id="ecom-header-bar">
-    <ul id="left-links">
-      <#if userLogin?has_content && userLogin.userLoginId != "anonymous">
-        <li id="header-bar-logout"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
-      <#else>
-        <li id="header-bar-login"><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
-        <li id="header-bar-register"><a href="<@ofbizUrl>newcustomer</@ofbizUrl>">${uiLabelMap.EcommerceRegister}</a></li>
-      </#if>
-      <li id="header-bar-contactus">
-        <#if userLogin?has_content && userLogin.userLoginId != "anonymous">
-          <a href="<@ofbizUrl>contactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
-        <#else>
-          <a href="<@ofbizUrl>AnonContactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
-        </#if>
-      <li id="header-bar-main"><a href="<@ofbizUrl>main</@ofbizUrl>">${uiLabelMap.CommonMain}</a></li>
-    </ul>
-    <ul id="right-links">
-      <!-- NOTE: these are in reverse order because they are stacked right to left instead of left to right -->
-      <#if !userLogin?has_content || (userLogin.userLoginId)! != "anonymous">
-        <li id="header-bar-viewprofile"><a href="<@ofbizUrl>viewprofile</@ofbizUrl>">${uiLabelMap.CommonProfile}</a></li>
-        <li id="header-bar-ListMessages"><a href="<@ofbizUrl>messagelist</@ofbizUrl>">${uiLabelMap.CommonMessages}</a></li>
-        <li id="header-bar-ListQuotes"><a href="<@ofbizUrl>ListQuotes</@ofbizUrl>">${uiLabelMap.OrderOrderQuotes}</a></li>
-        <li id="header-bar-ListRequests"><a href="<@ofbizUrl>ListRequests</@ofbizUrl>">${uiLabelMap.OrderRequests}</a></li>
-        <li id="header-bar-editShoppingList"><a href="<@ofbizUrl>editShoppingList</@ofbizUrl>">${uiLabelMap.EcommerceShoppingLists}</a></li>
-        <li id="header-bar-orderhistory"><a href="<@ofbizUrl>orderhistory</@ofbizUrl>">${uiLabelMap.EcommerceOrderHistory}</a></li>
-      </#if>
-      <#if catalogQuickaddUse>
-        <li id="header-bar-quickadd"><a href="<@ofbizUrl>quickadd</@ofbizUrl>">${uiLabelMap.CommonQuickAdd}</a></li>
-      </#if>
-    </ul>
-  </div>
\ No newline at end of file
+<div id="ecom-header-bar">
+  <ul id="left-links">
+    <#if userLogin?has_content && userLogin.userLoginId != "anonymous">
+      <li id="header-bar-logout"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
+    <#else>
+      <li id="header-bar-login"><a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
+      <li id="header-bar-register"><a href="<@ofbizUrl>newcustomer</@ofbizUrl>">${uiLabelMap.EcommerceRegister}</a></li>
+    </#if>
+    <li id="header-bar-contactus">
+    <#if userLogin?has_content && userLogin.userLoginId != "anonymous">
+      <a href="<@ofbizUrl>contactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
+    <#else>
+      <a href="<@ofbizUrl>AnonContactus</@ofbizUrl>">${uiLabelMap.CommonContactUs}</a></li>
+    </#if>
+    <li id="header-bar-main"><a href="<@ofbizUrl>main</@ofbizUrl>">${uiLabelMap.CommonMain}</a></li>
+  </ul>
+  <ul id="right-links">
+    <!-- NOTE: these are in reverse order because they are stacked right to left instead of left to right -->
+    <#if !userLogin?has_content || (userLogin.userLoginId)! != "anonymous">
+      <li id="header-bar-viewprofile">
+        <a href="<@ofbizUrl>viewprofile</@ofbizUrl>">${uiLabelMap.CommonProfile}</a>
+      </li>
+      <li id="header-bar-ListMessages">
+        <a href="<@ofbizUrl>messagelist</@ofbizUrl>">${uiLabelMap.CommonMessages}</a>
+      </li>
+      <li id="header-bar-ListQuotes">
+        <a href="<@ofbizUrl>ListQuotes</@ofbizUrl>">${uiLabelMap.OrderOrderQuotes}</a>
+      </li>
+      <li id="header-bar-ListRequests">
+        <a href="<@ofbizUrl>ListRequests</@ofbizUrl>">${uiLabelMap.OrderRequests}</a>
+      </li>
+      <li id="header-bar-editShoppingList">
+        <a href="<@ofbizUrl>editShoppingList</@ofbizUrl>">${uiLabelMap.EcommerceShoppingLists}</a>
+      </li>
+      <li id="header-bar-orderhistory">
+        <a href="<@ofbizUrl>orderhistory</@ofbizUrl>">${uiLabelMap.EcommerceOrderHistory}</a>
+      </li>
+    </#if>
+    <#if catalogQuickaddUse>
+      <li id="header-bar-quickadd"><a href="<@ofbizUrl>quickadd</@ofbizUrl>">${uiLabelMap.CommonQuickAdd}</a></li>
+    </#if>
+  </ul>
+</div>
\ No newline at end of file
Index: specialpurpose/ecommerce/template/includes/HeaderHead.ftl
===================================================================
--- specialpurpose/ecommerce/template/includes/HeaderHead.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/includes/HeaderHead.ftl	(working copy)
@@ -19,12 +19,14 @@
 <#assign docLangAttr = locale.toString()?replace("_", "-")>
 <#assign langDir = "ltr">
 <#if "ar.iw"?contains(docLangAttr?substring(0, 2))>
-    <#assign langDir = "rtl">
+  <#assign langDir = "rtl">
 </#if>
 <html lang="${docLangAttr}" dir="${langDir}" xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-  <title><#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>: ${(productStore.storeName)!}</title>
+  <title><#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>
+    : ${(productStore.storeName)!}
+  </title>
   <#if layoutSettings.VT_SHORTCUT_ICON?has_content>
     <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON.get(0)/>
   <#elseif layoutSettings.shortcutIcon?has_content>
@@ -31,28 +33,33 @@
     <#assign shortcutIcon = layoutSettings.shortcutIcon/>
   </#if>
   <#if shortcutIcon?has_content>
-    <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" />
+    <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>"/>
   </#if>
   <#if layoutSettings.styleSheets?has_content>
-    <#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet, AND a component style sheet.-->
+  <#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet,
+      AND a component style sheet.-->
     <#list layoutSettings.styleSheets as styleSheet>
-      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
+      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
+          type="text/css"/>
     </#list>
   </#if>
   <#if layoutSettings.VT_STYLESHEET?has_content>
     <#list layoutSettings.VT_STYLESHEET as styleSheet>
-      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
+      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
+          type="text/css"/>
     </#list>
   </#if>
   <#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl">
-    <#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
+  <#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
     <#list layoutSettings.rtlStyleSheets as styleSheet>
-      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
+      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
+          type="text/css"/>
     </#list>
   </#if>
   <#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl">
     <#list layoutSettings.VT_RTL_STYLESHEET as styleSheet>
-      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" type="text/css"/>
+      <link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>"
+          type="text/css"/>
     </#list>
   </#if>
   <#-- Append CSS for catalog -->
@@ -65,17 +72,19 @@
   </#if>
   <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content>
     <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>
-      <script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
+      <script type="text/javascript"
+          src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
     </#list>
   </#if>
   <#if layoutSettings.javaScripts?has_content>
-    <#--layoutSettings.javaScripts is a list of java scripts. -->
-    <#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
+  <#--layoutSettings.javaScripts is a list of java scripts. -->
+  <#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
     <#assign javaScriptsSet = Static["org.apache.ofbiz.base.util.UtilMisc"].toSet(layoutSettings.javaScripts)/>
     <#list layoutSettings.javaScripts as javaScript>
       <#if javaScriptsSet.contains(javaScript)>
         <#assign nothing = javaScriptsSet.remove(javaScript)/>
-        <script type="text/javascript" src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
+        <script type="text/javascript"
+                src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>"></script>
       </#if>
     </#list>
   </#if>
@@ -87,7 +96,7 @@
   </#if>
 
   <#-- Meta tags if defined by the page action -->
-  <meta name="generator" content="Apache OFBiz - eCommerce"/>
+    <meta name="generator" content="Apache OFBiz - eCommerce"/>
   <#if metaDescription??>
     <meta name="description" content="${metaDescription}"/>
   </#if>
@@ -96,11 +105,11 @@
   </#if>
   <#if webAnalyticsConfigs?has_content>
     <script language="JavaScript" type="text/javascript">
-    <#list webAnalyticsConfigs as webAnalyticsConfig>
-      <#if  webAnalyticsConfig.webAnalyticsTypeId != "BACKEND_ANALYTICS">
-        ${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
-      </#if>
-    </#list>
+      <#list webAnalyticsConfigs as webAnalyticsConfig>
+        <#if  webAnalyticsConfig.webAnalyticsTypeId != "BACKEND_ANALYTICS">
+          ${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode!)}
+        </#if>
+      </#list>
     </script>
   </#if>
 </head>
Index: specialpurpose/ecommerce/template/includes/Language.ftl
===================================================================
--- specialpurpose/ecommerce/template/includes/Language.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/includes/Language.ftl	(working copy)
@@ -34,7 +34,11 @@
           <#if "ar.iw"?contains(langAttr?substring(0, 2))>
             <#assign langDir = "rtl">
           </#if>
-          <option lang="${langAttr}" dir="${langDir}" value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()> selected="selected"</#if>>${availableLocale.getDisplayName(availableLocale)}</option>
+          <option lang="${langAttr}" dir="${langDir}"
+              value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()>
+              selected="selected"</#if>>
+            ${availableLocale.getDisplayName(availableLocale)}
+          </option>
         </#list>
       </select>
     </form>
Index: specialpurpose/ecommerce/template/order/AnonymousCheckoutLinks.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/AnonymousCheckoutLinks.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/AnonymousCheckoutLinks.ftl	(working copy)
@@ -17,35 +17,53 @@
 under the License.
 -->
 <script language="javascript" type="text/javascript">
-function submitForm(form) {
-   form.submit();
-}
+  function submitForm(form) {
+    form.submit();
+  }
 </script>
 <div>
-    <a href="<@ofbizUrl>setCustomer</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Personal Info</a>
-    <#if (enableShippingAddress)??>
-        <a href="<@ofbizUrl>setShipping</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Shipping Address</a>
-    <#else>
-        <span class="buttontextdisabled">Shipping Address</span>
-    </#if>
-    <#if (enableShipmentMethod)??>
-        <a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Shipping Options</a>
-    <#else>
-        <span class="buttontextdisabled">Shipping Options</span>
-    </#if>
-    <#if (enablePaymentOptions)??>
-        <a href="<@ofbizUrl>setPaymentOption</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Payment Options</a>
-    <#else>
-        <span class="buttontextdisabled">Payment Options</span>
-    </#if>
-    <#if (enablePaymentInformation)??>
-        <a href="<@ofbizUrl>setPaymentInformation?paymentMethodTypeId=${requestParameters.paymentMethodTypeId!}</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Payment Information</a>
-    <#else>
-        <span class="buttontextdisabled">Payment Information</span>
-    </#if>
-    <#if (enableReviewOrder)??>
-        <a href="<@ofbizUrl>reviewOrder</@ofbizUrl>" <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>Review Order</a>
-    <#else>
-        <span class="buttontextdisabled">Review Order</span>
-    </#if>
+  <a href="<@ofbizUrl>setCustomer</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Personal Info
+  </a>
+<#if (enableShippingAddress)??>
+  <a href="<@ofbizUrl>setShipping</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Shipping Address
+  </a>
+<#else>
+  <span class="buttontextdisabled">Shipping Address</span>
+</#if>
+<#if (enableShipmentMethod)??>
+  <a href="<@ofbizUrl>setShipOptions</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Shipping Options
+  </a>
+<#else>
+  <span class="buttontextdisabled">Shipping Options</span>
+</#if>
+<#if (enablePaymentOptions)??>
+  <a href="<@ofbizUrl>setPaymentOption</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Payment Options
+  </a>
+<#else>
+  <span class="buttontextdisabled">Payment Options</span>
+</#if>
+<#if (enablePaymentInformation)??>
+  <a href="<@ofbizUrl>setPaymentInformation?paymentMethodTypeId=${requestParameters.paymentMethodTypeId!}</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Payment Information
+  </a>
+<#else>
+  <span class="buttontextdisabled">Payment Information</span>
+</#if>
+<#if (enableReviewOrder)??>
+  <a href="<@ofbizUrl>reviewOrder</@ofbizUrl>"
+      <#if callSubmitForm??>onclick="javascript:submitForm(document.${parameters.formNameValue!});"</#if>>
+    Review Order
+  </a>
+<#else>
+  <span class="buttontextdisabled">Review Order</span>
+</#if>
 </div>
Index: specialpurpose/ecommerce/template/order/AnonymousTrail.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/AnonymousTrail.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/AnonymousTrail.ftl	(working copy)
@@ -17,4 +17,18 @@
 under the License.
 -->
 
-<#if shipAddr??><a href="<@ofbizUrl>setShipping</@ofbizUrl>" class="${trailClass.shipAddr}">${uiLabelMap.EcommerceChangeShippingAddress}</a><#if shipOptions??><a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" class="${trailClass.shipOptions}">${uiLabelMap.EcommerceChangeShippingOptions}</a><#if billing??><a href="<@ofbizUrl>setBilling?resetType=Y</@ofbizUrl>" class="${trailClass.paymentType}">${uiLabelMap.EcommerceChangePaymentInfo}</a></#if></#if></#if>
+<#if shipAddr??>
+  <a href="<@ofbizUrl>setShipping</@ofbizUrl>" class="${trailClass.shipAddr}">
+    ${uiLabelMap.EcommerceChangeShippingAddress}
+  </a>
+  <#if shipOptions??>
+    <a href="<@ofbizUrl>setShipOptions</@ofbizUrl>" class="${trailClass.shipOptions}">
+      ${uiLabelMap.EcommerceChangeShippingOptions}
+    </a>
+    <#if billing??>
+      <a href="<@ofbizUrl>setBilling?resetType=Y</@ofbizUrl>" class="${trailClass.paymentType}">
+        ${uiLabelMap.EcommerceChangePaymentInfo}
+      </a>
+    </#if>
+  </#if>
+</#if>
Index: specialpurpose/ecommerce/template/order/BillSettings.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/BillSettings.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/BillSettings.ftl	(working copy)
@@ -18,7 +18,7 @@
 -->
 
 <script language="JavaScript" type="text/javascript">
-function shipBillAddr() {
+  function shipBillAddr() {
     <#if requestParameters.singleUsePayment?default("N") == "Y">
       <#assign singleUse = "&amp;singleUsePayment=Y">
     <#else>
@@ -25,269 +25,350 @@
       <#assign singleUse = "">
     </#if>
     if (document.billsetupform.useShipAddr.checked) {
-        window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}&amp;useShipAddr=Y${singleUse}");
+      window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}&amp;useShipAddr=Y${singleUse}");
     } else {
-        window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}${singleUse}");
+      window.location.replace("setBilling?createNew=Y&amp;finalizeMode=payment&amp;useGc=${requestParameters.useGc!}&amp;paymentMethodType=${paymentMethodType!}${singleUse}");
     }
-}
+  }
 </script>
 
 <div class="screenlet">
-    <div class="screenlet-title-bar">
-        <div class="boxlink">
-            <#if requestParameters.singleUsePayment?default("N") != "Y">
-              <div>
-                ${screens.render(anonymoustrailScreen)}
-              </div>
-            </#if>
+  <div class="screenlet-title-bar">
+    <div class="boxlink">
+      <#if requestParameters.singleUsePayment?default("N") != "Y">
+        <div>
+          ${screens.render(anonymoustrailScreen)}
         </div>
-        <div class='h3'>${uiLabelMap.AccountingPaymentInformation}</div>
+      </#if>
     </div>
-    <div class="screenlet-body">
-        <#if (paymentMethodType?? && !requestParameters.resetType?has_content) || finalizeMode?default("") == "payment">
-          <#-- after initial screen; show detailed screens for selected type -->
-          <#if paymentMethodType == "CC">
-            <#if creditCard?has_content && postalAddress?has_content>
-              <form method="post" action="<@ofbizUrl>changeCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
-                <input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId!}" />
-                <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
-            <#elseif requestParameters.useShipAddr??>
-              <form method="post" action="<@ofbizUrl>enterCreditCard</@ofbizUrl>" name="billsetupform">
-            <#else>
-              <form method="post" action="<@ofbizUrl>enterCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
-            </#if>
-          </#if>
-          <#if paymentMethodType == "EFT">
-            <#if eftAccount?has_content && postalAddress?has_content>
-              <form method="post" action="<@ofbizUrl>changeEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
-                <input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId!}" />
-                <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}" />
-            <#elseif requestParameters.useShipAddr??>
-              <form method="post" action="<@ofbizUrl>enterEftAccount</@ofbizUrl>" name="billsetupform">
-            <#else>
-              <form method="post" action="<@ofbizUrl>enterEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
-            </#if>
-          </#if>
-          <#if paymentMethodType == "GC">
-            <form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
-          </#if>
+    <div class='h3'>${uiLabelMap.AccountingPaymentInformation}</div>
+  </div>
+  <div class="screenlet-body">
+    <#if (paymentMethodType?? && !requestParameters.resetType?has_content) || finalizeMode?default("") == "payment">
+      <#-- after initial screen; show detailed screens for selected type -->
+      <#if paymentMethodType == "CC">
+        <#if creditCard?has_content && postalAddress?has_content>
+          <form method="post" action="<@ofbizUrl>changeCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
+            <input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId!}"/>
+            <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
+        <#elseif requestParameters.useShipAddr??>
+          <form method="post" action="<@ofbizUrl>enterCreditCard</@ofbizUrl>" name="billsetupform">
+        <#else>
+          <form method="post" action="<@ofbizUrl>enterCreditCardAndBillingAddress</@ofbizUrl>" name="billsetupform">
+        </#if>
+      </#if>
+      <#if paymentMethodType == "EFT">
+        <#if eftAccount?has_content && postalAddress?has_content>
+          <form method="post" action="<@ofbizUrl>changeEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
+            <input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId!}"/>
+            <input type="hidden" name="contactMechId" value="${postalAddress.contactMechId!}"/>
+        <#elseif requestParameters.useShipAddr??>
+          <form method="post" action="<@ofbizUrl>enterEftAccount</@ofbizUrl>" name="billsetupform">
+        <#else>
+          <form method="post" action="<@ofbizUrl>enterEftAccountAndBillingAddress</@ofbizUrl>" name="billsetupform">
+        </#if>
+      </#if>
+      <#if paymentMethodType == "GC">
+        <form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
+      </#if>
 
-          <#if requestParameters.singleUsePayment?default("N") == "Y">
-            <input type="hidden" name="singleUsePayment" value="Y" />
-            <input type="hidden" name="appendPayment" value="Y" />
-          </#if>
+      <#if requestParameters.singleUsePayment?default("N") == "Y">
+        <input type="hidden" name="singleUsePayment" value="Y"/>
+        <input type="hidden" name="appendPayment" value="Y"/>
+      </#if>
 
-          <input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS" />
-          <input type="hidden" name="partyId" value="${partyId}" />
-          <input type="hidden" name="paymentMethodType" value="${paymentMethodType}" />
-          <input type="hidden" name="finalizeMode" value="payment" />
-          <input type="hidden" name="createNew" value="Y" />
-          <#if requestParameters.useShipAddr??>
-            <input type="hidden" name="contactMechId" value="${postalFields.contactMechId}" />
-          </#if>
+      <input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS"/>
+      <input type="hidden" name="partyId" value="${partyId}"/>
+      <input type="hidden" name="paymentMethodType" value="${paymentMethodType}"/>
+      <input type="hidden" name="finalizeMode" value="payment"/>
+      <input type="hidden" name="createNew" value="Y"/>
+      <#if requestParameters.useShipAddr??>
+        <input type="hidden" name="contactMechId" value="${postalFields.contactMechId}"/>
+      </#if>
 
-          <table width="100%" border="0" cellpadding="1" cellspacing="0">
-            <#if cart.getShippingContactMechId()?? && paymentMethodType != "GC">
-              <tr>
-                <td width="26%" align="right"= valign="top">
-                  <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();" <#if requestParameters.useShipAddr??>checked="checked"</#if> />
-                </td>
-                <td colspan="2" valign="center">
-                  <div>${uiLabelMap.FacilityBillingAddressSameShipping}</div>
-                </td>
-              </tr>
-              <tr>
-                <td colspan="3"><hr /></td>
-              </tr>
-            </#if>
+      <table width="100%" border="0" cellpadding="1" cellspacing="0">
+        <#if cart.getShippingContactMechId()?? && paymentMethodType != "GC">
+          <tr>
+            <td width="26%" align="right" = valign="top">
+              <input type="checkbox" name="useShipAddr" value="Y" onclick="javascript:shipBillAddr();"
+                  <#if requestParameters.useShipAddr??>checked="checked"</#if>/>
+            </td>
+            <td colspan="2" valign="center">
+              <div>${uiLabelMap.FacilityBillingAddressSameShipping}</div>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="3">
+              <hr/>
+            </td>
+          </tr>
+        </#if>
 
-            <#if (paymentMethodType == "CC" || paymentMethodType == "EFT")>
-              <tr>
-                <td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.PartyBillingAddress}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">&nbsp;</td>
-              </tr>
-              ${screens.render("component://ecommerce/widget/OrderScreens.xml#genericaddress")}
-            </#if>
+        <#if (paymentMethodType == "CC" || paymentMethodType == "EFT")>
+          <tr>
+            <td width="26%" align="right" valign="top">
+              <div class="tableheadtext">${uiLabelMap.PartyBillingAddress}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">&nbsp;</td>
+          </tr>
+          ${screens.render("component://ecommerce/widget/OrderScreens.xml#genericaddress")}
+        </#if>
 
-            <#-- credit card fields -->
-            <#if paymentMethodType == "CC">
-              <#if !creditCard?has_content>
-                <#assign creditCard = requestParameters>
-              </#if>
-              <tr>
-                <td colspan="3"><hr /></td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingCreditCardInformation}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">&nbsp;</td>
-              </tr>
+        <#-- credit card fields -->
+        <#if paymentMethodType == "CC">
+          <#if !creditCard?has_content>
+            <#assign creditCard = requestParameters>
+          </#if>
+          <tr>
+            <td colspan="3">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="top">
+              <div class="tableheadtext">${uiLabelMap.AccountingCreditCardInformation}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">&nbsp;</td>
+          </tr>
 
-              ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
-            </#if>
+          ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
+        </#if>
 
-            <#-- eft fields -->
-            <#if paymentMethodType =="EFT">
-              <#if !eftAccount?has_content>
-                <#assign eftAccount = requestParameters>
-              </#if>
-              <tr>
-                <td colspan="3"><hr /></td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">&nbsp;</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingNameOnAccount}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount" value="${eftAccount.nameOnAccount!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingCompanyNameOnAccount}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount" value="${eftAccount.companyNameOnAccount!}" />
-                </td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingBankName}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="30" maxlength="60" name="bankName" value="${eftAccount.bankName!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingRoutingNumber}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber" value="${eftAccount.routingNumber!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountType}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <select name="accountType" class='selectBox'>
-                    <option>${eftAccount.accountType!}</option>
-                    <option></option>
-                    <option>Checking</option>
-                    <option>Savings</option>
-                  </select>
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountNumber}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber" value="${eftAccount.accountNumber!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${eftAccount.description!}" />
-                </td>
-              </tr>
-            </#if>
+        <#-- eft fields -->
+        <#if paymentMethodType =="EFT">
+          <#if !eftAccount?has_content>
+            <#assign eftAccount = requestParameters>
+          </#if>
+          <tr>
+            <td colspan="3">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="top">
+              <div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">&nbsp;</td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingNameOnAccount}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount"
+                  value="${eftAccount.nameOnAccount!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingCompanyNameOnAccount}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount"
+                  value="${eftAccount.companyNameOnAccount!}"/>
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingBankName}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="30" maxlength="60" name="bankName"
+                  value="${eftAccount.bankName!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingRoutingNumber}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber"
+                     value="${eftAccount.routingNumber!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingAccountType}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <select name="accountType" class='selectBox'>
+                <option>${eftAccount.accountType!}</option>
+                <option></option>
+                <option>Checking</option>
+                <option>Savings</option>
+              </select>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingAccountNumber}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber"
+                     value="${eftAccount.accountNumber!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.CommonDescription}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="30" maxlength="60" name="description"
+                  value="${eftAccount.description!}"/>
+            </td>
+          </tr>
+        </#if>
 
-            <#-- gift card fields -->
-            <#if requestParameters.useGc?default("") == "GC" || paymentMethodType == "GC">
-              <#assign giftCard = requestParameters>
-              <input type="hidden" name="addGiftCard" value="Y" />
-              <#if paymentMethodType != "GC">
-                <tr>
-                  <td colspan="3"><hr /></td>
-                </tr>
-              </#if>
-              <tr>
-                <td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">&nbsp;</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingGiftCardNumber}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber" value="${giftCard.cardNumber!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingPINNumber}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin" value="${giftCard.pinNumber!}" />
-                *</td>
-              </tr>
-              <tr>
-                <td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
-                <td width="5">&nbsp;</td>
-                <td width="74%">
-                  <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${giftCard.description!}" />
-                </td>
-              </tr>
-              <#if paymentMethodType != "GC">
-                <tr>
-                  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAmountToUse}</div></td>
-                  <td width="5">&nbsp;</td>
-                  <td width="74%">
-                    <input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount" value="${giftCard.pinNumber!}" />
-                  *</td>
-                </tr>
-              </#if>
-            </#if>
+        <#-- gift card fields -->
+        <#if requestParameters.useGc?default("") == "GC" || paymentMethodType == "GC">
+          <#assign giftCard = requestParameters>
+          <input type="hidden" name="addGiftCard" value="Y"/>
+          <#if paymentMethodType != "GC">
+            <tr>
+              <td colspan="3">
+                <hr/>
+              </td>
+            </tr>
+          </#if>
+          <tr>
+            <td width="26%" align="right" valign="top">
+              <div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">&nbsp;</td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingGiftCardNumber}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber"
+                     value="${giftCard.cardNumber!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.AccountingPINNumber}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin"
+                     value="${giftCard.pinNumber!}"/>*
+            </td>
+          </tr>
+          <tr>
+            <td width="26%" align="right" valign="middle">
+              <div>${uiLabelMap.CommonDescription}</div>
+            </td>
+            <td width="5">&nbsp;</td>
+            <td width="74%">
+              <input type="text" class="inputBox" size="30" maxlength="60" name="description"
+                     value="${giftCard.description!}"/>
+            </td>
+          </tr>
+          <#if paymentMethodType != "GC">
+            <tr>
+              <td width="26%" align="right" valign="middle">
+                <div>${uiLabelMap.AccountingAmountToUse}</div>
+              </td>
+              <td width="5">&nbsp;</td>
+              <td width="74%">
+                <input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount"
+                       value="${giftCard.pinNumber!}"/>*
+              </td>
+            </tr>
+          </#if>
+        </#if>
 
+        <tr>
+          <td align="center" colspan="3">
+            <input type="submit" class="smallsubmit" value="Continue"/>
+          </td>
+        </tr>
+      </table>
+    <#else>
+    <#-- initial screen show a list of options -->
+      <form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
+        <input type="hidden" name="finalizeMode" value="payment"/>
+        <input type="hidden" name="createNew" value="Y"/>
+        <table width="100%" border="0" cellpadding="1" cellspacing="0">
+          <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
             <tr>
-              <td align="center" colspan="3">
-                <input type="submit" class="smallsubmit" value="Continue" />
+              <td width='5%' nowrap="nowrap">
+                <input type="checkbox" name="useGc" value="GC"
+                    <#if paymentMethodType?? && paymentMethodType == "GC">checked="checked"</#if>/>
               </td>
+              <td width='95%' nowrap="nowrap">
+                <div>${uiLabelMap.AccountingCheckGiftCard}</div>
+              </td>
             </tr>
-          </table>
-        <#else>
-          <#-- initial screen show a list of options -->
-          <form method="post" action="<@ofbizUrl>finalizeOrder</@ofbizUrl>" name="billsetupform">
-            <input type="hidden" name="finalizeMode" value="payment" />
-            <input type="hidden" name="createNew" value="Y" />
-            <table width="100%" border="0" cellpadding="1" cellspacing="0">
-              <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
-              <tr>
-                <td width='5%' nowrap="nowrap"><input type="checkbox" name="useGc" value="GC" <#if paymentMethodType?? && paymentMethodType == "GC">checked="checked"</#if> /></td>
-                <td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingCheckGiftCard}</div></td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              </#if>
-              <#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE??>
-              <tr>
-                <td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="offline" <#if paymentMethodType?? && paymentMethodType == "offline">checked="checked"</#if> /></td>
-                <td width='95%'nowrap="nowrap"><div>${uiLabelMap.OrderPaymentOfflineCheckMoney}</div></td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              </#if>
-              <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
-              <tr>
-                <td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="CC" <#if paymentMethodType?? && paymentMethodType == "CC">checked="checked"</#if> /></td>
-                <td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingVisaMastercardAmexDiscover}</div></td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              </#if>
-              <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
-              <tr>
-                <td width='5%' nowrap="nowrap"><input type="radio" name="paymentMethodType" value="EFT" <#if paymentMethodType?? && paymentMethodType == "EFT">checked="checked"</#if> /></td>
-                <td width='95%' nowrap="nowrap"><div>${uiLabelMap.AccountingAHCElectronicCheck}</div></td>
-              </tr>
-              </#if>
-              <tr>
-                <td align="center" colspan="2">
-                  <input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}" />
-                </td>
-              </tr>
-            </table>
-          </form>
-        </#if>
-    </div>
+            <tr>
+              <td colspan="2">
+                <hr/>
+              </td>
+            </tr>
+          </#if>
+          <#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE??>
+            <tr>
+              <td width='5%' nowrap="nowrap">
+                <input type="radio" name="paymentMethodType" value="offline"
+                    <#if paymentMethodType?? && paymentMethodType == "offline">checked="checked"</#if>/>
+              </td>
+              <td width='95%' nowrap="nowrap">
+                <div>${uiLabelMap.OrderPaymentOfflineCheckMoney}</div>
+              </td>
+            </tr>
+            <tr>
+              <td colspan="2">
+                <hr/>
+              </td>
+            </tr>
+          </#if>
+          <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
+            <tr>
+              <td width='5%' nowrap="nowrap">
+                <input type="radio" name="paymentMethodType" value="CC"
+                    <#if paymentMethodType?? && paymentMethodType == "CC">checked="checked"</#if>/>
+              </td>
+              <td width='95%' nowrap="nowrap">
+                <div>${uiLabelMap.AccountingVisaMastercardAmexDiscover}</div>
+              </td>
+            </tr>
+            <tr>
+              <td colspan="2">
+                <hr/>
+              </td>
+            </tr>
+          </#if>
+          <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
+            <tr>
+              <td width='5%' nowrap="nowrap">
+                <input type="radio" name="paymentMethodType" value="EFT"
+                    <#if paymentMethodType?? && paymentMethodType == "EFT">checked="checked"</#if>/>
+              </td>
+              <td width='95%' nowrap="nowrap">
+                <div>${uiLabelMap.AccountingAHCElectronicCheck}</div>
+              </td>
+            </tr>
+          </#if>
+          <tr>
+            <td align="center" colspan="2">
+              <input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}"/>
+            </td>
+          </tr>
+        </table>
+      </form>
+    </#if>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/order/CcInfo.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/CcInfo.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/CcInfo.ftl	(working copy)
@@ -20,7 +20,11 @@
 <#if !creditCard?has_content>
   <#assign creditCard = requestParameters>
 </#if>
-<tr><td colspan="3"><hr /></td></tr>
+<tr>
+  <td colspan="3">
+    <hr/>
+  </td>
+</tr>
 
 ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
 
Index: specialpurpose/ecommerce/template/order/CheckoutReview.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/CheckoutReview.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/CheckoutReview.ftl	(working copy)
@@ -18,31 +18,34 @@
 -->
 
 <script language="JavaScript" type="text/javascript">
-<!--
-    var clicked = 0;
-    function processOrder() {
-        if (clicked == 0) {
-            clicked++;
-            //window.location.replace("<@ofbizUrl>processorder</@ofbizUrl>");
-            document.${parameters.formNameValue}.processButton.value="${uiLabelMap.OrderSubmittingOrder}";
-            document.${parameters.formNameValue}.processButton.disabled=true;
-            document.${parameters.formNameValue}.submit();
-        } else {
-            showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.YoureOrderIsBeingProcessed}");
-        }
+  <!--
+  var clicked = 0;
+  function processOrder() {
+    if (clicked == 0) {
+      clicked++;
+      //window.location.replace("<@ofbizUrl>processorder</@ofbizUrl>
+      ");
+      document.${parameters.formNameValue}.processButton.value = "${uiLabelMap.OrderSubmittingOrder}";
+      document.${parameters.formNameValue}.processButton.disabled = true;
+      document.${parameters.formNameValue}.submit();
+    } else {
+      showErrorAlert("${uiLabelMap.CommonErrorMessage2}", "${uiLabelMap.YoureOrderIsBeingProcessed}");
     }
-// -->
+  }
+  // -->
 </script>
 
 <h1>${uiLabelMap.OrderFinalCheckoutReview}</h1>
-<#if !isDemoStore?? && isDemoStore><p>${uiLabelMap.OrderDemoFrontNote}.</p></#if>
+<#if !isDemoStore?? && isDemoStore>
+  <p>${uiLabelMap.OrderDemoFrontNote}.</p>
+</#if>
 
 <#if cart?? && 0 < cart.size()>
   ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")}
-  <br />
+  <br/>
   ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
   <table border="0" cellpadding="1" width="100%">
-   <tr>
+    <tr>
       <td colspan="4">
         &nbsp;
       </td>
@@ -49,14 +52,16 @@
       <td align="right">
         <form type="post" action="<@ofbizUrl>processorder</@ofbizUrl>" name="${parameters.formNameValue}">
           <#if (requestParameters.checkoutpage)?has_content>
-            <input type="hidden" name="checkoutpage" value="${requestParameters.checkoutpage}" />
+            <input type="hidden" name="checkoutpage" value="${requestParameters.checkoutpage}"/>
           </#if>
           <#if (requestAttributes.issuerId)?has_content>
-            <input type="hidden" name="issuerId" value="${requestAttributes.issuerId}" />
+            <input type="hidden" name="issuerId" value="${requestAttributes.issuerId}"/>
           </#if>
-          <input type="button" name="processButton" value="${uiLabelMap.OrderSubmitOrder}" onclick="processOrder();" class="mediumSubmit" />
+          <input type="button" name="processButton" value="${uiLabelMap.OrderSubmitOrder}" onclick="processOrder();"
+                 class="mediumSubmit"/>
         </form>
-        <#-- doesn't work with Safari, seems to work with IE, Mozilla <a href="#" onclick="processOrder();" class="buttontextbig">[${uiLabelMap.OrderSubmitOrder}]&nbsp;</a> -->
+      <#-- doesn't work with Safari, seems to work with IE, Mozilla
+           <a href="#" onclick="processOrder();" class="buttontextbig">[${uiLabelMap.OrderSubmitOrder}]&nbsp;</a> -->
       </td>
     </tr>
   </table>
Index: specialpurpose/ecommerce/template/order/CheckoutShippingOptions.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/CheckoutShippingOptions.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/CheckoutShippingOptions.ftl	(working copy)
@@ -18,44 +18,44 @@
 -->
 
 <script language="javascript" type="text/javascript">
-//<![CDATA[
-function submitForm(form, mode, value) {
+  //<![CDATA[
+  function submitForm(form, mode, value) {
     if (mode == "DN") {
-        // done action; checkout
-        form.action="<@ofbizUrl>checkoutoptions</@ofbizUrl>";
-        form.submit();
+      // done action; checkout
+      form.action = "<@ofbizUrl>checkoutoptions</@ofbizUrl>";
+      form.submit();
     } else if (mode == "CS") {
-        // continue shopping
-        form.action="<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";
-        form.submit();
+      // continue shopping
+      form.action = "<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";
+      form.submit();
     } else if (mode == "NA") {
-        // new address
-        form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION&DONE_PAGE=checkoutoptions</@ofbizUrl>";
-        form.submit();
+      // new address
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editcontactmech?preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION&DONE_PAGE=checkoutoptions</@ofbizUrl>";
+      form.submit();
     } else if (mode == "EA") {
-        // edit address
-        form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=checkoutshippingaddress&contactMechId="+value+"</@ofbizUrl>";
-        form.submit();
+      // edit address
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=checkoutshippingaddress&contactMechId="+ value+"</@ofbizUrl>";
+      form.submit();
     } else if (mode == "NC") {
-        // new credit card
-        form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutoptions</@ofbizUrl>";
-        form.submit();
+      // new credit card
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutoptions</@ofbizUrl>";
+      form.submit();
     } else if (mode == "EC") {
-        // edit credit card
-        form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutoptions&paymentMethodId="+value+"</@ofbizUrl>";
-        form.submit();
+      // edit credit card
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutoptions&paymentMethodId="+ value+"</@ofbizUrl>";
+      form.submit();
     } else if (mode == "NE") {
-        // new eft account
-        form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutoptions</@ofbizUrl>";
-        form.submit();
+      // new eft account
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutoptions</@ofbizUrl>";
+      form.submit();
     } else if (mode == "EE") {
-        // edit eft account
-        form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutoptions&paymentMethodId="+value+"</@ofbizUrl>";
-        form.submit();
+      // edit eft account
+      form.action = "<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutoptions&paymentMethodId="+ value+"</@ofbizUrl>";
+      form.submit();
     }
-}
+  }
 
-//]]>
+  //]]>
 </script>
 
 <form method="post" name="checkoutInfoForm" style="margin:0;">
@@ -63,130 +63,174 @@
     <input type="hidden" name="checkoutpage" value="shippingoptions"/>
 
     <div class="screenlet" style="height: 100%;">
-        <div class="screenlet-title-bar">
-            <div class="h3">2)&nbsp;${uiLabelMap.OrderHowShallWeShipIt}?</div>
-        </div>
-        <div class="screenlet-body" style="height: 100%;">
-            <table width="100%" cellpadding="1" border="0" cellpadding="0" cellspacing="0">
-              <#list carrierShipmentMethodList as carrierShipmentMethod>
-                <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId>
-                <tr>
-                  <td width="1%" valign="top" >
-                    <input type="radio" name="shipping_method" value="${shippingMethod}" <#if shippingMethod == StringUtil.wrapString(chosenShippingMethod!"N@A")>checked="checked"</#if> />
-                  </td>
-                  <td valign="top">
-                    <div>
-                      <#if shoppingCart.getShippingContactMechId()??>
-                        <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)>
-                      </#if>
-                      <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!}&nbsp;</#if>${carrierShipmentMethod.description!}
-                      <#if shippingEst?has_content> - <#if (shippingEst > -1)><@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/><#else>${uiLabelMap.OrderCalculatedOffline}</#if></#if>
-                    </div>
-                  </td>
-                </tr>
-              </#list>
-              <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0>
-                <tr>
-                  <td width="1%" valign="top">
-                    <input type="radio" name="shipping_method" value="Default" checked="checked" />
-                  </td>
-                  <td valign="top">
-                    <div>${uiLabelMap.OrderUseDefault}.</div>
-                  </td>
-                </tr>
-              </#if>
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <h2>${uiLabelMap.OrderShipAllAtOnce}?</h2>
-                </td>
-              </tr>
-              <tr>
-                <td valign="top">
-                  <input type="radio" <#if "Y" != shoppingCart.getMaySplit()?default("N")>checked="checked"</#if> name="may_split" value="false" />
-                </td>
-                <td valign="top">
-                  <div>${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.</div>
-                </td>
-              </tr>
-              <tr>
-                <td valign="top">
-                  <input <#if "Y" == shoppingCart.getMaySplit()?default("N")>checked="checked"</#if> type="radio" name="may_split" value="true" />
-                </td>
-                <td valign="top">
-                  <div>${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.</div>
-                </td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <h2>${uiLabelMap.OrderSpecialInstructions}</h2>
-                </td>
-              </tr>
-              <tr>
-                <td colspan="2">
-                  <textarea class="textAreaBox" cols="30" rows="3" wrap="hard" name="shipping_instructions">${shoppingCart.getShippingInstructions()!}</textarea>
-                </td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <h2>${uiLabelMap.OrderPoNumber}</h2>&nbsp;
-                  <#if shoppingCart.getPoNumber()?? && shoppingCart.getPoNumber() != "(none)">
-                    <#assign currentPoNumber = shoppingCart.getPoNumber()>
+      <div class="screenlet-title-bar">
+        <div class="h3">2)&nbsp;${uiLabelMap.OrderHowShallWeShipIt}?</div>
+      </div>
+      <div class="screenlet-body" style="height: 100%;">
+        <table width="100%" cellpadding="1" border="0" cellpadding="0" cellspacing="0">
+        <#list carrierShipmentMethodList as carrierShipmentMethod>
+          <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId>
+          <tr>
+            <td width="1%" valign="top">
+              <input type="radio" name="shipping_method" value="${shippingMethod}"
+                     <#if shippingMethod == StringUtil.wrapString(chosenShippingMethod!"N@A")>checked="checked"</#if>/>
+            </td>
+            <td valign="top">
+              <div>
+                <#if shoppingCart.getShippingContactMechId()??>
+                  <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)>
+                </#if>
+                <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!}
+                  &nbsp;</#if>${carrierShipmentMethod.description!}
+                <#if shippingEst?has_content> -
+                  <#if (shippingEst > -1)>
+                    <@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/>
+                  <#else>
+                    ${uiLabelMap.OrderCalculatedOffline}
                   </#if>
-                  <input type="text" class="inputBox" name="correspondingPoId" size="15" value="${currentPoNumber!}"/>
-                </td>
-              </tr>
-              <#if productStore.showCheckoutGiftOptions! != "N">
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <div>
-                    <h2>${uiLabelMap.OrderIsThisGift}</h2>
-                    <input type="radio" <#if "Y" == shoppingCart.getIsGift()?default("N")>checked="checked"</#if> name="is_gift" value="true" /><span>${uiLabelMap.CommonYes}</span>
-                    <input type="radio" <#if "Y" != shoppingCart.getIsGift()?default("N")>checked="checked"</#if> name="is_gift" value="false" /><span>${uiLabelMap.CommonNo}</span>
-                  </div>
-                </td>
-              </tr>
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <h2>${uiLabelMap.OrderGiftMessage}</h2>
-                </td>
-              </tr>
-              <tr>
-                <td colspan="2">
-                  <textarea class="textAreaBox" cols="30" rows="3" wrap="hard" name="gift_message">${shoppingCart.getGiftMessage()!}</textarea>
-                </td>
-              </tr>
-              <#else>
-              <input type="hidden" name="is_gift" value="false"/>
+                </#if>
+              </div>
+            </td>
+          </tr>
+        </#list>
+        <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0>
+          <tr>
+            <td width="1%" valign="top">
+              <input type="radio" name="shipping_method" value="Default" checked="checked"/>
+            </td>
+            <td valign="top">
+              <div>${uiLabelMap.OrderUseDefault}.</div>
+            </td>
+          </tr>
+        </#if>
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <h2>${uiLabelMap.OrderShipAllAtOnce}?</h2>
+            </td>
+          </tr>
+          <tr>
+            <td valign="top">
+              <input type="radio" <#if "Y" != shoppingCart.getMaySplit()?default("N")>checked="checked"</#if>
+                  name="may_split" value="false"/>
+            </td>
+            <td valign="top">
+              <div>${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.</div>
+            </td>
+          </tr>
+          <tr>
+            <td valign="top">
+              <input <#if "Y" == shoppingCart.getMaySplit()?default("N")>checked="checked"</#if> type="radio"
+                  name="may_split" value="true"/>
+            </td>
+            <td valign="top">
+              <div>${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.</div>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <h2>${uiLabelMap.OrderSpecialInstructions}</h2>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <textarea class="textAreaBox" cols="30" rows="3" wrap="hard"
+                  name="shipping_instructions">${shoppingCart.getShippingInstructions()!}</textarea>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <h2>${uiLabelMap.OrderPoNumber}</h2>&nbsp;
+              <#if shoppingCart.getPoNumber()?? && shoppingCart.getPoNumber() != "(none)">
+                <#assign currentPoNumber = shoppingCart.getPoNumber()>
               </#if>
-              <tr><td colspan="2"><hr /></td></tr>
-              <tr>
-                <td colspan="2">
-                  <h2>${uiLabelMap.PartyEmailAddresses}</h2>
-                </td>
-              </tr>
-              <tr>
-                <td colspan="2">
-                  <div>${uiLabelMap.OrderEmailSentToFollowingAddresses}:</div>
-                  <div>
-                    <b>
-                      <#list emailList as email>
-                        ${email.infoString!}<#if email_has_next>,</#if>
-                      </#list>
-                    </b>
-                  </div>
-                  <div>${uiLabelMap.OrderUpdateEmailAddress} <a href="<@ofbizUrl>viewprofile?DONE_PAGE=checkoutoptions</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyProfile}</a>.</div>
-                  <br />
-                  <div>${uiLabelMap.OrderCommaSeperatedEmailAddresses}:</div>
-                  <input type="text" class="inputBox" size="30" name="order_additional_emails" value="${shoppingCart.getOrderAdditionalEmails()!}"/>
-                </td>
-              </tr>
-            </table>
-        </div>
+              <input type="text" class="inputBox" name="correspondingPoId" size="15" value="${currentPoNumber!}"/>
+            </td>
+          </tr>
+        <#if productStore.showCheckoutGiftOptions! != "N">
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <div>
+                <h2>${uiLabelMap.OrderIsThisGift}</h2>
+                <input type="radio" <#if "Y" == shoppingCart.getIsGift()?default("N")>checked="checked"</#if>
+                    name="is_gift" value="true"/><span>${uiLabelMap.CommonYes}</span>
+                <input type="radio" <#if "Y" != shoppingCart.getIsGift()?default("N")>checked="checked"</#if>
+                    name="is_gift" value="false"/><span>${uiLabelMap.CommonNo}</span>
+              </div>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <h2>${uiLabelMap.OrderGiftMessage}</h2>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <textarea class="textAreaBox" cols="30" rows="3" wrap="hard"
+                  name="gift_message">${shoppingCart.getGiftMessage()!}</textarea>
+            </td>
+          </tr>
+        <#else>
+          <input type="hidden" name="is_gift" value="false"/>
+        </#if>
+          <tr>
+            <td colspan="2">
+              <hr/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <h2>${uiLabelMap.PartyEmailAddresses}</h2>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="2">
+              <div>${uiLabelMap.OrderEmailSentToFollowingAddresses}:</div>
+              <div>
+                <b>
+                  <#list emailList as email>
+                    ${email.infoString!}<#if email_has_next>,</#if>
+                  </#list>
+                </b>
+              </div>
+              <div>
+                ${uiLabelMap.OrderUpdateEmailAddress}
+                <a href="<@ofbizUrl>viewprofile?DONE_PAGE=checkoutoptions</@ofbizUrl>" class="buttontext">
+                  ${uiLabelMap.PartyProfile}
+                </a>.
+              </div>
+              <br/>
+              <div>${uiLabelMap.OrderCommaSeperatedEmailAddresses}:</div>
+              <input type="text" class="inputBox" size="30" name="order_additional_emails"
+                  value="${shoppingCart.getOrderAdditionalEmails()!}"/>
+            </td>
+          </tr>
+        </table>
+      </div>
     </div>
   </fieldset>
 </form>
@@ -193,11 +237,13 @@
 
 <table width="100%">
   <tr valign="top">
-    <td>
-      &nbsp;<a href="javascript:submitForm(document.checkoutInfoForm, 'CS', '');" class="buttontextbig">${uiLabelMap.OrderBacktoShoppingCart}</a>
+    <td>&nbsp;
+      <a href="javascript:submitForm(document.checkoutInfoForm, 'CS', '');"
+          class="buttontextbig">${uiLabelMap.OrderBacktoShoppingCart}</a>
     </td>
     <td align="right">
-      <a href="javascript:submitForm(document.checkoutInfoForm, 'DN', '');" class="buttontextbig">${uiLabelMap.CommonNext}</a>
+      <a href="javascript:submitForm(document.checkoutInfoForm, 'DN', '');"
+          class="buttontextbig">${uiLabelMap.CommonNext}</a>
     </td>
   </tr>
 </table>
Index: specialpurpose/ecommerce/template/order/CustSettings.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/CustSettings.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/CustSettings.ftl	(working copy)
@@ -19,13 +19,14 @@
 
 <p>
 <h3>${uiLabelMap.EcommerceYourNamePhoneAndEmail}</h3>
-<form id="editCustomerNamePhoneAndEmail" name="${parameters.formNameValue}" method="post" action="<@ofbizUrl>processCustomerSettings</@ofbizUrl>">
+<form id="editCustomerNamePhoneAndEmail" name="${parameters.formNameValue}" method="post"
+    action="<@ofbizUrl>processCustomerSettings</@ofbizUrl>">
   <input type="hidden" name="partyId" value="${parameters.partyId!}"/>
   <fieldset>
     <div>
-    <span>
-      <label for="personalTitle">${uiLabelMap.CommonTitle}</label>
-      <select name="personalTitle">
+      <span>
+        <label for="personalTitle">${uiLabelMap.CommonTitle}</label>
+        <select name="personalTitle">
           <#if requestParameters.personalTitle?has_content >
             <option>${parameters.personalTitle}</option>
             <option value="${parameters.personalTitle}"> -- </option>
@@ -36,29 +37,30 @@
           <option>${uiLabelMap.CommonTitleMrs}</option>
           <option>${uiLabelMap.CommonTitleMs}</option>
           <option>${uiLabelMap.CommonTitleDr}</option>
-      </select>
-    </span>
-    <span>
+        </select>
+      </span>
+      <span>
       <label for="firstName">${uiLabelMap.PartyFirstName}</label>
-      <input type="text" name="firstName" value="${parameters.firstName!}" /> *
+      <input type="text" name="firstName" value="${parameters.firstName!}"/> *
     </span>
-    <span>
+      <span>
       <label for="middleName">${uiLabelMap.PartyMiddleInitial}</label>
-      <input type="text" name="middleName" value="${parameters.middleName!}" />
+      <input type="text" name="middleName" value="${parameters.middleName!}"/>
     </span>
-    <span>
+      <span>
       <label for="lastName">${uiLabelMap.PartyLastName}</label>
-      <input type="text" name="lastName" value="${parameters.lastName!}" /> *
+      <input type="text" name="lastName" value="${parameters.lastName!}"/> *
     </span>
-    <span>
+      <span>
       <label for="suffix">${uiLabelMap.PartySuffix}</label>
-      <input type="text" class='inputBox' name="suffix" value="${parameters.suffix!}" />
+      <input type="text" class='inputBox' name="suffix" value="${parameters.suffix!}"/>
     </span>
     </div>
   </fieldset>
 
-  <table summary="Tabular form for entering multiple telecom numbers for different purposes. Each row allows user to enter telecom number for a purpose">
-  <caption>${uiLabelMap.PartyPhoneNumbers}</caption>
+  <table summary="Tabular form for entering multiple telecom numbers for different purposes.
+      Each row allows user to enter telecom number for a purpose">
+    <caption>${uiLabelMap.PartyPhoneNumbers}</caption>
     <tr>
       <th></th>
       <th scope="col">${uiLabelMap.CommonCountry}</th>
@@ -68,60 +70,68 @@
       <th scope="col">${uiLabelMap.PartyAllowSolicitation}</th>
     </tr>
     <tr>
-    <th scope="row">${uiLabelMap.PartyHomePhone}</th>
-    <input type="hidden" name="homePhoneContactMechId" value="${parameters.homePhoneContactMechId!}"/>
-    <td><input type="text" name="homeCountryCode" value="${parameters.homeCountryCode!}" /></td>
-    <td><input type="text" name="homeAreaCode" value="${parameters.homeAreaCode!}" /></td>
-    <td><input type="text" name="homeContactNumber" value="${parameters.homeContactNumber!}" /></td>
-    <td><input type="text" name="homeExt" value="${parameters.homeExt!}" /></td>
-    <td>
-      <select name="homeSol">
-        <#if (((parameters.homeSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-        <#if (((parameters.homeSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
-        <option></option>
-        <option value="Y">${uiLabelMap.CommonY}</option>
-        <option value="N">${uiLabelMap.CommonN}</option>
-      </select>
-    </td>
-  </tr>
-  <tr>
-    <th scope="row">${uiLabelMap.PartyBusinessPhone}</th>
-    <input type="hidden" name="workPhoneContactMechId" value="${parameters.workPhoneContactMechId!}"/>
-    <td><input type="text" name="workCountryCode" value="${parameters.workCountryCode!}" /></td>
-    <td><input type="text" name="workAreaCode" value="${parameters.workAreaCode!}" /></td>
-    <td><input type="text" name="workContactNumber" value="${parameters.workContactNumber!}" /></td>
-    <td><input type="text" name="workExt" value="${parameters.workExt!}" /></td>
-    <td>
-      <select name="workSol">
-        <#if (((parameters.workSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-        <#if (((parameters.workSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
-        <option></option>
-        <option value="Y">${uiLabelMap.CommonY}</option>
-        <option value="N">${uiLabelMap.CommonN}</option>
-      </select>
-    </td>
-  </tr>
-</table>
+      <th scope="row">${uiLabelMap.PartyHomePhone}</th>
+      <input type="hidden" name="homePhoneContactMechId" value="${parameters.homePhoneContactMechId!}"/>
+      <td><input type="text" name="homeCountryCode" value="${parameters.homeCountryCode!}"/></td>
+      <td><input type="text" name="homeAreaCode" value="${parameters.homeAreaCode!}"/></td>
+      <td><input type="text" name="homeContactNumber" value="${parameters.homeContactNumber!}"/></td>
+      <td><input type="text" name="homeExt" value="${parameters.homeExt!}"/></td>
+      <td>
+        <select name="homeSol">
+        <#if (((parameters.homeSol)!"") == "Y")>
+          <option value="Y">${uiLabelMap.CommonY}</option></#if>
+        <#if (((parameters.homeSol)!"") == "N")>
+          <option value="N">${uiLabelMap.CommonN}</option></#if>
+          <option></option>
+          <option value="Y">${uiLabelMap.CommonY}</option>
+          <option value="N">${uiLabelMap.CommonN}</option>
+        </select>
+      </td>
+    </tr>
+    <tr>
+      <th scope="row">${uiLabelMap.PartyBusinessPhone}</th>
+      <input type="hidden" name="workPhoneContactMechId" value="${parameters.workPhoneContactMechId!}"/>
+      <td><input type="text" name="workCountryCode" value="${parameters.workCountryCode!}"/></td>
+      <td><input type="text" name="workAreaCode" value="${parameters.workAreaCode!}"/></td>
+      <td><input type="text" name="workContactNumber" value="${parameters.workContactNumber!}"/></td>
+      <td><input type="text" name="workExt" value="${parameters.workExt!}"/></td>
+      <td>
+        <select name="workSol">
+          <#if (((parameters.workSol)!"") == "Y")>
+            <option value="Y">${uiLabelMap.CommonY}</option>
+          </#if>
+          <#if (((parameters.workSol)!"") == "N")>
+            <option value="N">${uiLabelMap.CommonN}</option>
+          </#if>
+          <option></option>
+          <option value="Y">${uiLabelMap.CommonY}</option>
+          <option value="N">${uiLabelMap.CommonN}</option>
+        </select>
+      </td>
+    </tr>
+  </table>
   <fieldset>
     <div>
-    <span>
-      <label for="emailAddress">${uiLabelMap.PartyEmailAddress}</label>
-      <input type="hidden" name="emailContactMechId" value="${parameters.emailContactMechId!}"/>
-      <input type="text" class="inputBox" name="emailAddress" value="${parameters.emailAddress!}"/> *
-    </span>
-    <span>
+      <span>
+        <label for="emailAddress">${uiLabelMap.PartyEmailAddress}</label>
+        <input type="hidden" name="emailContactMechId" value="${parameters.emailContactMechId!}"/>
+        <input type="text" class="inputBox" name="emailAddress" value="${parameters.emailAddress!}"/> *
+      </span>
+      <span>
       <label for="emailSol">${uiLabelMap.PartyAllowSolicitation}</label>
       <select name="emailSol" class="selectBox">
-        <#if (((parameters.emailSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-        <#if (((parameters.emailSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
-        <option></option>
+        <#if (((parameters.emailSol)!"") == "Y")>
+          <option value="Y">${uiLabelMap.CommonY}</option></#if>
+        <#if (((parameters.emailSol)!"") == "N")>
+          <option value="N">${uiLabelMap.CommonN}</option></#if>
+          <option></option>
         <option value="Y">${uiLabelMap.CommonY}</option>
         <option value="N">${uiLabelMap.CommonN}</option>
       </select>
     </span>
-   </div>
-  <div class="buttons">
-    <input type="submit" value="${uiLabelMap.CommonContinue}"/>
-  </div>
+    </div>
+    <div class="buttons">
+      <input type="submit" value="${uiLabelMap.CommonContinue}"/>
+    </div>
   </fieldset>
 </form>
Index: specialpurpose/ecommerce/template/order/EftInfo.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/EftInfo.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/EftInfo.ftl	(working copy)
@@ -19,29 +19,65 @@
 
 <#-- eft fields -->
 <#if !eftAccount?has_content><#assign eftAccount = requestParameters></#if>
-<tr><td colspan="3"><hr />
-<input type="hidden" name="paymentMethodId" value="${parameters.paymentMethodId!}"/></td></tr>
-<tr><td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div></td><td width="5">&nbsp;</td><td width="74%">&nbsp;</td></tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingNameOnAccount}</div></td>
+  <td colspan="3">
+    <hr/>
+    <input type="hidden" name="paymentMethodId" value="${parameters.paymentMethodId!}"/>
+  </td>
+</tr>
+<tr>
+  <td width="26%" align="right" valign="top">
+    <div class="tableheadtext">${uiLabelMap.AccountingEFTAccountInformation}</div>
+  </td>
   <td width="5">&nbsp;</td>
-  <td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount" value="${eftAccount.nameOnAccount!}"/>*</td>
+  <td width="74%">&nbsp;</td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingCompanyNameOnAccount}</div></td><td width="5">&nbsp;</td>
-  <td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount" value="${eftAccount.companyNameOnAccount!}"/></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingNameOnAccount}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="30" maxlength="60" name="nameOnAccount"
+        value="${eftAccount.nameOnAccount!}"/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingBankName}</div></td>
-  <td width="5">&nbsp;</td><td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="bankName" value="${eftAccount.bankName!}"/>*</td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingCompanyNameOnAccount}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="30" maxlength="60" name="companyNameOnAccount"
+        value="${eftAccount.companyNameOnAccount!}"/>
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingRoutingNumber}</div></td>
-  <td width="5">&nbsp;</td><td width="74%"><input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber" value="${eftAccount.routingNumber!}"/>*</td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingBankName}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="30" maxlength="60" name="bankName"
+        value="${eftAccount.bankName!}"/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountType}</div></td><td width="5">&nbsp;</td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingRoutingNumber}</div>
+  </td>
+  <td width="5">&nbsp;</td>
   <td width="74%">
+    <input type="text" class="inputBox" size="10" maxlength="30" name="routingNumber"
+        value="${eftAccount.routingNumber!}"/>*
+  </td>
+</tr>
+<tr>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingAccountType}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
     <select name="accountType" class='selectBox'>
       <option>${eftAccount.accountType!}</option>
       <option></option>
@@ -51,10 +87,22 @@
   </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAccountNumber}</div></td>
-  <td width="5">&nbsp;</td><td width="74%"><input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber" value="${eftAccount.accountNumber!}"/>*</td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingAccountNumber}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="20" maxlength="40" name="accountNumber"
+        value="${eftAccount.accountNumber!}"/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
-  <td width="5">&nbsp;</td><td width="74%"><input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${eftAccount.description!}"/></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.CommonDescription}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="30" maxlength="60" name="description"
+        value="${eftAccount.description!}"/>
+  </td>
 </tr>
Index: specialpurpose/ecommerce/template/order/GcInfo.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/GcInfo.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/GcInfo.ftl	(working copy)
@@ -18,45 +18,59 @@
 -->
 
 <#-- gift card fields -->
-  <input type="hidden" name="addGiftCard" value="Y"/>
-  <#assign giftCard = giftCard!>
-  <#if paymentMethodTypeId! != "GIFT_CARD">
-    <tr>
-      <td colspan="3"><hr /></td>
-    </tr>
-  </#if>
-  <tr>
-    <td width="26%" align="right" valign="top"><div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div></td>
-    <td width="5">&nbsp;</td>
-    <td width="74%">&nbsp;</td>
-  </tr>
-  <tr>
-    <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingGiftCardNumber}</div></td>
-    <td width="5">&nbsp;</td>
-    <td width="74%">
-      <input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber" value="${giftCard.cardNumber!}"/>
-    *</td>
-  </tr>
-  <tr>
-    <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingPINNumber}</div></td>
-    <td width="5">&nbsp;</td>
-    <td width="74%">
-      <input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin" value="${giftCard.pinNumber!}"/>
-    *</td>
-  </tr>
-  <tr>
-    <td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonDescription}</div></td>
-    <td width="5">&nbsp;</td>
-    <td width="74%">
-      <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${giftCard.description!}"/>
-    </td>
-  </tr>
-  <#if paymentMethodTypeId! != "GIFT_CARD">
-    <tr>
-      <td width="26%" align="right" valign="middle"><div>${uiLabelMap.AccountingAmountToUse}</div></td>
-      <td width="5">&nbsp;</td>
-      <td width="74%">
-        <input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount" value="${giftCard.pinNumber!}"/>
-      *</td>
-    </tr>
-  </#if>
+<input type="hidden" name="addGiftCard" value="Y"/>
+<#assign giftCard = giftCard!>
+<#if paymentMethodTypeId! != "GIFT_CARD">
+<tr>
+  <td colspan="3">
+    <hr/>
+  </td>
+</tr>
+</#if>
+<tr>
+  <td width="26%" align="right" valign="top">
+    <div class="tableheadtext">${uiLabelMap.AccountingGiftCardInformation}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">&nbsp;</td>
+</tr>
+<tr>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingGiftCardNumber}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="20" maxlength="60" name="giftCardNumber" value="${giftCard.cardNumber!}"/>
+    *
+  </td>
+</tr>
+<tr>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingPINNumber}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="10" maxlength="60" name="giftCardPin" value="${giftCard.pinNumber!}"/>
+    *
+  </td>
+</tr>
+<tr>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.CommonDescription}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="30" maxlength="60" name="description" value="${giftCard.description!}"/>
+  </td>
+</tr>
+<#if paymentMethodTypeId! != "GIFT_CARD">
+<tr>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.AccountingAmountToUse}</div>
+  </td>
+  <td width="5">&nbsp;</td>
+  <td width="74%">
+    <input type="text" class="inputBox" size="5" maxlength="10" name="giftCardAmount" value="${giftCard.pinNumber!}"/>*
+  </td>
+</tr>
+</#if>
Index: specialpurpose/ecommerce/template/order/GenericAddress.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/GenericAddress.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/GenericAddress.ftl	(working copy)
@@ -29,42 +29,59 @@
 </#if>
 
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyToName}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyToName}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="30" maxlength="60" name="toName" value="${toName}" <#if requestParameters.useShipAddr??>disabled</#if>/>
+    <input type="text" class="inputBox" size="30" maxlength="60" name="toName" value="${toName}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>
   </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyAttentionName}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyAttentionName}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="30" maxlength="60" name="attnName" value="${(parameters.attnName)!}" <#if requestParameters.useShipAddr??>disabled</#if>/>
+    <input type="text" class="inputBox" size="30" maxlength="60" name="attnName" value="${(parameters.attnName)!}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>
   </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyAddressLine1}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyAddressLine1}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="30" maxlength="30" name="address1" value="${(parameters.address1)!}" <#if requestParameters.useShipAddr??>disabled</#if>/>
-  *</td>
+    <input type="text" class="inputBox" size="30" maxlength="30" name="address1" value="${(parameters.address1)!}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyAddressLine2}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyAddressLine2}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="30" maxlength="30" name="address2" value="${(parameters.address2)!}" <#if requestParameters.useShipAddr??>disabled</#if>/>
+    <input type="text" class="inputBox" size="30" maxlength="30" name="address2" value="${(parameters.address2)!}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>
   </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyCity}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyCity}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="30" maxlength="30" name="city" value="${(parameters.city)!}" <#if requestParameters.useShipAddr??>disabled</#if>/>
-  *</td>
+    <input type="text" class="inputBox" size="30" maxlength="30" name="city" value="${(parameters.city)!}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyState}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyState}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
     <select name="stateProvinceGeoId" class="selectBox" <#if requestParameters.useShipAddr??>disabled</#if>>
@@ -75,18 +92,23 @@
         <option value="">${uiLabelMap.PartyNoState}</option>
       </#if>
       ${screens.render("component://common/widget/CommonScreens.xml#states")}
-    </select>
-  *</td>
+    </select>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyZipCode}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyZipCode}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
-    <input type="text" class="inputBox" size="12" maxlength="10" name="postalCode" value="${(parameters.postalCode)!}" <#if requestParameters.useShipAddr??>disabled</#if>/>
-  *</td>
+    <input type="text" class="inputBox" size="12" maxlength="10" name="postalCode" value="${(parameters.postalCode)!}"
+        <#if requestParameters.useShipAddr??>disabled</#if>/>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.CommonCountry}</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.CommonCountry}</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
     <select name="countryGeoId" class="selectBox" <#if requestParameters.useShipAddr??>disabled</#if>>
@@ -95,16 +117,22 @@
         <option value="${parameters.countryGeoId}">---</option>
       </#if>
       ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-    </select>
-  *</td>
+    </select>*
+  </td>
 </tr>
 <tr>
-  <td width="26%" align="right" valign="middle"><div>${uiLabelMap.PartyAllowSolicitation}?</div></td>
+  <td width="26%" align="right" valign="middle">
+    <div>${uiLabelMap.PartyAllowSolicitation}?</div>
+  </td>
   <td width="5">&nbsp;</td>
   <td width="74%">
     <select name="allowSolicitation" class='selectBox' <#if requestParameters.useShipAddr??>disabled</#if>>
-      <#if (((parameters.allowSolicitation)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-      <#if (((parameters.allowSolicitation)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+      <#if (((parameters.allowSolicitation)!"") == "Y")>
+        <option value="Y">${uiLabelMap.CommonY}</option>
+      </#if>
+      <#if (((parameters.allowSolicitation)!"") == "N")>
+        <option value="N">${uiLabelMap.CommonN}</option>
+      </#if>
       <option></option>
       <option value="Y">${uiLabelMap.CommonY}</option>
       <option value="N">${uiLabelMap.CommonN}</option>
Index: specialpurpose/ecommerce/template/order/OnePageCheckoutProcess.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OnePageCheckoutProcess.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OnePageCheckoutProcess.ftl	(working copy)
@@ -19,482 +19,606 @@
 
 <div>
   <#assign shoppingCart = sessionAttributes.shoppingCart! />
-  <h2>${uiLabelMap.OrderCheckout}</h2>
-    <#if shoppingCart?has_content && shoppingCart.size() &gt; 0>
-      <div id="checkoutPanel">
+    <h2>${uiLabelMap.OrderCheckout}</h2>
+  <#if shoppingCart?has_content && shoppingCart.size() &gt; 0>
+    <div id="checkoutPanel">
 
-<#-- ========================================================================================================================== -->
-        <div id="cartPanel" class="screenlet">
-          ${screens.render("component://ecommerce/widget/CartScreens.xml#UpdateCart")}
-        </div>
+    <#-- ========================================================================================================================== -->
+      <div id="cartPanel" class="screenlet">
+      ${screens.render("component://ecommerce/widget/CartScreens.xml#UpdateCart")}
+      </div>
 
-<#-- ========================================================================================================================== -->
-        <div id="shippingPanel" class="screenlet">
-          <h3>${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}</h3>
-          <div id="shippingSummaryPanel" style="display: none;">
-            <a href="javascript:void(0);" id="openShippingPanel" class="button">${uiLabelMap.EcommerceClickHereToEdit}</a>
-            <div id="shippingCompleted">
-              <ul>
-                <li>
-                  <h4>${uiLabelMap.OrderShipTo}</h4>
-                  <ul>
-                    <li id="completedShipToAttn"></li>
-                    <li id="completedShippingContactNumber"></li>
-                    <li id="completedEmailAddress"></li>
-                  </ul>
-                </li>
-                <li>
-                  <h4>${uiLabelMap.EcommerceLocation}</h4>
-                  <ul>
-                    <li id="completedShipToAddress1"></li>
-                    <li id="completedShipToAddress2"></li>
-                    <li id="completedShipToGeo"></li>
-                  </ul>
-                </li>
-              </ul>
-            </div>
+    <#-- ========================================================================================================================== -->
+      <div id="shippingPanel" class="screenlet">
+        <h3>${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}</h3>
+        <div id="shippingSummaryPanel" style="display: none;">
+          <a href="javascript:void(0);" id="openShippingPanel" class="button">
+            ${uiLabelMap.EcommerceClickHereToEdit}
+          </a>
+          <div id="shippingCompleted">
+            <ul>
+              <li>
+                <h4>${uiLabelMap.OrderShipTo}</h4>
+                <ul>
+                  <li id="completedShipToAttn"></li>
+                  <li id="completedShippingContactNumber"></li>
+                  <li id="completedEmailAddress"></li>
+                </ul>
+              </li>
+              <li>
+                <h4>${uiLabelMap.EcommerceLocation}</h4>
+                <ul>
+                  <li id="completedShipToAddress1"></li>
+                  <li id="completedShipToAddress2"></li>
+                  <li id="completedShipToGeo"></li>
+                </ul>
+              </li>
+            </ul>
           </div>
+        </div>
 
-<#-- ============================================================= -->
-          <div id="editShippingPanel" style="display: none;">
-            <form id="shippingForm" action="<@ofbizUrl>createUpdateShippingAddress</@ofbizUrl>" method="post">
-                <fieldset>
-                  <input type="hidden" id="shipToContactMechId" name="shipToContactMechId" value="${shipToContactMechId!}" />
-                  <input type="hidden" id="billToContactMechIdInShipingForm" name="billToContactMechId" value="${billToContactMechId!}" />
-                  <input type="hidden" id="shipToPartyId" name="partyId" value="${partyId!}" />
-                  <input type="hidden" id="shipToPhoneContactMechId" name="shipToPhoneContactMechId" value="${(shipToTelecomNumber.contactMechId)!}" />
-                  <input type="hidden" id="emailContactMechId" name="emailContactMechId" value="${emailContactMechId!}" />
-                  <input type="hidden" name="shipToName" value="${shipToName!}" />
-                  <input type="hidden" name="shipToAttnName" value="${shipToAttnName!}" />
-                  <#if userLogin??>
-                    <input type="hidden" name="keepAddressBook" value="Y" />
-                    <input type="hidden" name="setDefaultShipping" value="Y" />
-                    <input type="hidden" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}" />
-                    <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-                    <input type="hidden" name="productStoreId" value="${productStoreId!}" />
-                  <#else>
-                    <input type="hidden" name="keepAddressBook" value="N" />
-                  </#if>
-                  <div id="shippingFormServerError" class="errorMessage"></div>
-                  <div>
-                      <span>
-                        <label for="firstName">${uiLabelMap.PartyFirstName}*
-                          <span id="advice-required-firstName" style="display: none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                        </label>
-                        <input id="firstName" name="firstName" class="required" type="text" value="${firstName!}" />
+      <#-- ============================================================= -->
+        <div id="editShippingPanel" style="display: none;">
+          <form id="shippingForm" action="<@ofbizUrl>createUpdateShippingAddress</@ofbizUrl>" method="post">
+            <fieldset>
+              <input type="hidden" id="shipToContactMechId" name="shipToContactMechId" value="${shipToContactMechId!}"/>
+              <input type="hidden" id="billToContactMechIdInShipingForm" name="billToContactMechId"
+                     value="${billToContactMechId!}"/>
+              <input type="hidden" id="shipToPartyId" name="partyId" value="${partyId!}"/>
+              <input type="hidden" id="shipToPhoneContactMechId" name="shipToPhoneContactMechId"
+                     value="${(shipToTelecomNumber.contactMechId)!}"/>
+              <input type="hidden" id="emailContactMechId" name="emailContactMechId" value="${emailContactMechId!}"/>
+              <input type="hidden" name="shipToName" value="${shipToName!}"/>
+              <input type="hidden" name="shipToAttnName" value="${shipToAttnName!}"/>
+              <#if userLogin??>
+                <input type="hidden" name="keepAddressBook" value="Y"/>
+                <input type="hidden" name="setDefaultShipping" value="Y"/>
+                <input type="hidden" name="userLoginId" id="userLoginId" value="${userLogin.userLoginId!}"/>
+                <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
+                <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
+              <#else>
+                <input type="hidden" name="keepAddressBook" value="N"/>
+              </#if>
+              <div id="shippingFormServerError" class="errorMessage"></div>
+              <div>
+                <span>
+                  <label for="firstName">${uiLabelMap.PartyFirstName}*
+                    <span id="advice-required-firstName" style="display: none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="firstName" name="firstName" class="required" type="text" value="${firstName!}"/>
+                </span>
+                <span>
+                  <label for="lastName">${uiLabelMap.PartyLastName}*
+                    <span id="advice-required-lastName" style="display:none"class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="lastName" name="lastName" class="required" type="text" value="${lastName!}"/>
+                </span>
+              </div>
+              <div>
+                <#if shipToTelecomNumber?has_content>
+                  <span>
+                    <label for="shipToCountryCode">${uiLabelMap.CommonCountry}*
+                      <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
                       </span>
-                      <span>
-                        <label for="lastName">${uiLabelMap.PartyLastName}*
-                          <span id="advice-required-lastName" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                        </label>
-                        <input id="lastName" name="lastName" class="required" type="text" value="${lastName!}" />
+                    </label>
+                    <input type="text" name="shipToCountryCode" class="required" id="shipToCountryCode"
+                           value="${shipToTelecomNumber.countryCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="shipToAreaCode">${uiLabelMap.PartyAreaCode}*
+                      <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
                       </span>
-                  </div>
-                  <div>
-                  <#if shipToTelecomNumber?has_content>
-                      <span>
-                          <label for="shipToCountryCode">${uiLabelMap.CommonCountry}*
-                              <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToCountryCode" class="required" id="shipToCountryCode" value="${shipToTelecomNumber.countryCode!}" size="5" maxlength="10" /> -
+                    </label>
+                    <input type="text" name="shipToAreaCode" class="required" id="shipToAreaCode"
+                        value="${shipToTelecomNumber.areaCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                      <label for="shipToContactNumber">
+                        ${uiLabelMap.PartyContactNumber}*
+                        <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage">
+                          (${uiLabelMap.CommonRequired})
+                        </span>
+                      </label>
+                      <input type="text" name="shipToContactNumber" class="required" id="shipToContactNumber"
+                          value="${shipToTelecomNumber.contactNumber!}" size="10" maxlength="15"/> -
+                  </span>
+                  <span>
+                    <label for="shipToExtension">${uiLabelMap.PartyExtension}</label>
+                    <input type="text" name="shipToExtension" id="shipToExtension" value="${shipToExtension!}"
+                        size="5" maxlength="10"/>
+                  </span>
+                <#else>
+                  <span>
+                    <label for="shipToCountryCode">${uiLabelMap.CommonCountry}*
+                      <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
                       </span>
-                      <span>
-                          <label for="shipToAreaCode">${uiLabelMap.PartyAreaCode}*
-                              <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToAreaCode" class="required" id="shipToAreaCode" value="${shipToTelecomNumber.areaCode!}" size="5" maxlength="10" /> -
+                    </label>
+                      <input type="text" name="shipToCountryCode" class="required" id="shipToCountryCode"
+                          value="${parameters.shipToCountryCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="shipToAreaCode">${uiLabelMap.PartyAreaCode}*
+                      <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
                       </span>
-                      <span>
-                          <label for="shipToContactNumber">${uiLabelMap.PartyContactNumber}*
-                              <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToContactNumber" class="required" id="shipToContactNumber" value="${shipToTelecomNumber.contactNumber!}" size="10" maxlength="15" /> -
+                    </label>
+                    <input type="text" name="shipToAreaCode" class="required" id="shipToAreaCode"
+                        value="${parameters.shipToAreaCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="shipToContactNumber">${uiLabelMap.PartyContactNumber}*
+                      <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
                       </span>
-                      <span>
-                          <label for="shipToExtension">${uiLabelMap.PartyExtension}</label>
-                          <input type="text" name="shipToExtension" id="shipToExtension" value="${shipToExtension!}" size="5" maxlength="10" />
-                      </span>
-                  <#else>
-                      <span>
-                          <label for="shipToCountryCode">${uiLabelMap.CommonCountry}*
-                              <span id="advice-required-shipToCountryCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToCountryCode" class="required" id="shipToCountryCode" value="${parameters.shipToCountryCode!}" size="5" maxlength="10" /> -
-                      </span>
-                      <span>
-                          <label for="shipToAreaCode">${uiLabelMap.PartyAreaCode}*
-                              <span id="advice-required-shipToAreaCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToAreaCode" class="required" id="shipToAreaCode" value="${parameters.shipToAreaCode!}" size="5" maxlength="10" /> -
-                      </span>
-                      <span>
-                          <label for="shipToContactNumber">${uiLabelMap.PartyContactNumber}*
-                              <span id="advice-required-shipToContactNumber" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input type="text" name="shipToContactNumber" class="required" id="shipToContactNumber" value="${parameters.shipToContactNumber!}" size="10" maxlength="15" /> -
-                      </span>
-                      <span>
-                          <label for="shipToExtension">${uiLabelMap.PartyExtension}</label>
-                          <input type="text" name="shipToExtension" id="shipToExtension" value="${parameters.shipToExtension!}" size="5" maxlength="10" />
-                      </span>
-                  </#if>
-                  </div>
-                  <div>
-                      <span>
-                          <label for="emailAddress">${uiLabelMap.PartyEmailAddress}*
-                            <span id="advice-required-emailAddress" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                          </label>
-                          <input id="emailAddress" name="emailAddress" class="required validate-email" maxlength="255" size="40" type="text" value="${emailAddress!}" />
-                      </span>
-                  </div>
-                    <div>
-                        <span>
-                            <label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*
-                                <span id="advice-required-shipToAddress1" class="custom-advice errorMessage" style="display:none"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <input id="shipToAddress1" name="shipToAddress1" class="required" type="text" value="${shipToAddress1!}" maxlength="255" size="40" />
-                        </span>
-                    </div>
-                    <div>
-                        <span>
-                          <label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-                          <input id="shipToAddress2" name="shipToAddress2" type="text" value="${shipToAddress2!}" maxlength="255" size="40" />
-                        </span>
-                    </div>
-                    <div>
-                        <span>
-                            <label for="shipToCity">${uiLabelMap.CommonCity}*
-                                <span id="advice-required-shipToCity" class="custom-advice errorMessage" style="display:none"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <input id="shipToCity" name="shipToCity" class="required" type="text" value="${shipToCity!}" maxlength="255" size="40" />
-                        </span>
-                    </div>
-                    <div>
-                        <span>
-                            <label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*
-                                <span id="advice-required-shipToPostalCode" class="custom-advice errorMessage" style="display:none"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <input id="shipToPostalCode" name="shipToPostalCode" class="required" type="text" value="${shipToPostalCode!}" size="12" maxlength="10" />
-                        </span>
-                    </div>
-                    <div>
-                        <span>
-                            <label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*
-                                <span id="advice-required-shipToCountryGeo" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <select name="shipToCountryGeoId" id="shipToCountryGeoId">
-                              <#if shipToCountryGeoId??>
-                                <option value="${shipToCountryGeoId!}">${shipToCountryProvinceGeo?default(shipToCountryGeoId!)}</option>
-                              </#if>
-                              ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-                            </select>
-                        </span>
-                    </div>
-                    <div id="shipToStates">
-                        <span>
-                            <label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*
-                                <span id="advice-required-shipToStateProvinceGeoId" style="display:none" class="errorMessage">(${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
-                              <#if shipToStateProvinceGeoId?has_content>
-                                <option value='${shipToStateProvinceGeoId!}'>${shipToStateProvinceGeo?default(shipToStateProvinceGeoId!)}</option>
-                              <#else>
-                                <option value="_NA_">${uiLabelMap.PartyNoState}</option>
-                              </#if>
-                              ${screens.render("component://common/widget/CommonScreens.xml#states")}
-                            </select>
-                        </span>
-                    </div>
-                  </fieldset>
-                  <fieldset>
-                    <a href="javascript:void(0);" class="button" id="savePartyAndShippingContact">${uiLabelMap.EcommerceContinueToStep} 3</a>
-                    <a style="display:none" class="button" href="javascript:void(0);" id="processingShippingOptions">${uiLabelMap.EcommercePleaseWait}....</a>
-                  </fieldset>
-            </form>
-          </div>
+                    </label>
+                    <input type="text" name="shipToContactNumber" class="required" id="shipToContactNumber"
+                        value="${parameters.shipToContactNumber!}" size="10" maxlength="15"/> -
+                  </span>
+                  <span>
+                    <label for="shipToExtension">${uiLabelMap.PartyExtension}</label>
+                    <input type="text" name="shipToExtension" id="shipToExtension"
+                        value="${parameters.shipToExtension!}" size="5" maxlength="10"/>
+                  </span>
+                </#if>
+              </div>
+              <div>
+                <span>
+                  <label for="emailAddress">${uiLabelMap.PartyEmailAddress}*
+                    <span id="advice-required-emailAddress" style="display:none"class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="emailAddress" name="emailAddress" class="required validate-email" maxlength="255"
+                      size="40" type="text" value="${emailAddress!}"/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="shipToAddress1">${uiLabelMap.PartyAddressLine1}*
+                    <span id="advice-required-shipToAddress1" class="custom-advice errorMessage" style="display:none">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="shipToAddress1" name="shipToAddress1" class="required" type="text"
+                      value="${shipToAddress1!}" maxlength="255" size="40"/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="shipToAddress2">${uiLabelMap.PartyAddressLine2}</label>
+                  <input id="shipToAddress2" name="shipToAddress2" type="text" value="${shipToAddress2!}"
+                      maxlength="255" size="40"/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="shipToCity">${uiLabelMap.CommonCity}*
+                    <span id="advice-required-shipToCity" class="custom-advice errorMessage" style="display:none">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="shipToCity" name="shipToCity" class="required" type="text" value="${shipToCity!}"
+                      maxlength="255" size="40"/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="shipToPostalCode">${uiLabelMap.PartyZipCode}*
+                    <span id="advice-required-shipToPostalCode" class="custom-advice errorMessage"style="display:none">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="shipToPostalCode" name="shipToPostalCode" class="required" type="text"
+                      value="${shipToPostalCode!}" size="12" maxlength="10"/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="shipToCountryGeoId">${uiLabelMap.CommonCountry}*
+                    <span id="advice-required-shipToCountryGeo" style="display:none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <select name="shipToCountryGeoId" id="shipToCountryGeoId">
+                    <#if shipToCountryGeoId??>
+                      <option value="${shipToCountryGeoId!}">
+                        ${shipToCountryProvinceGeo?default(shipToCountryGeoId!)}
+                      </option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+                  </select>
+                </span>
+              </div>
+              <div id="shipToStates">
+                <span>
+                  <label for="shipToStateProvinceGeoId">${uiLabelMap.CommonState}*
+                    <span id="advice-required-shipToStateProvinceGeoId" style="display:none"
+                      class="errorMessage">(${uiLabelMap.CommonRequired})</span>
+                  </label>
+                  <select id="shipToStateProvinceGeoId" name="shipToStateProvinceGeoId">
+                    <#if shipToStateProvinceGeoId?has_content>
+                      <option value='${shipToStateProvinceGeoId!}'>
+                        ${shipToStateProvinceGeo?default(shipToStateProvinceGeoId!)}
+                      </option>
+                    <#else>
+                      <option value="_NA_">${uiLabelMap.PartyNoState}</option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#states")}
+                  </select>
+                </span>
+              </div>
+            </fieldset>
+            <fieldset>
+              <a href="javascript:void(0);" class="button" id="savePartyAndShippingContact">
+                ${uiLabelMap.EcommerceContinueToStep} 3
+              </a>
+              <a style="display:none" class="button" href="javascript:void(0);" id="processingShippingOptions">
+                ${uiLabelMap.EcommercePleaseWait}....
+              </a>
+            </fieldset>
+          </form>
         </div>
+      </div>
 
-<#-- ========================================================================================================================== -->
-        <div id="shippingOptionPanel" class="screenlet">
-          <h3>${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}</h3>
-          <div id="shippingOptionSummaryPanel" class="screenlet-body" style="display: none;">
-            <a href="javascript:void(0);" id="openShippingOptionPanel" class="button">${uiLabelMap.EcommerceClickHereToEdit}</a>
-            <div class="completed" id="shippingOptionCompleted">
-              <ul>
-                <li>${uiLabelMap.CommonMethod}</li>
-                <li id="selectedShipmentOption"></li>
-              </ul>
-            </div>
+    <#-- ========================================================================================================================== -->
+      <div id="shippingOptionPanel" class="screenlet">
+        <h3>${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}</h3>
+        <div id="shippingOptionSummaryPanel" class="screenlet-body" style="display: none;">
+          <a href="javascript:void(0);" id="openShippingOptionPanel"
+             class="button">${uiLabelMap.EcommerceClickHereToEdit}</a>
+          <div class="completed" id="shippingOptionCompleted">
+            <ul>
+              <li>${uiLabelMap.CommonMethod}</li>
+              <li id="selectedShipmentOption"></li>
+            </ul>
           </div>
+        </div>
 
-<#-- ============================================================= -->
-          <div id="editShippingOptionPanel" class="screenlet-body" style="display: none;">
-            <form id="shippingOptionForm" action="<@ofbizUrl></@ofbizUrl>" method="post">
-              <fieldset>
-                  <div id="shippingOptionFormServerError" class="errorMessage"></div>
-                  <div>
-                      <label for="shipMethod">${uiLabelMap.OrderSelectShippingMethod}*
-                          <span id="advice-required-shipping_method" class="custom-advice" style="display:none"> (${uiLabelMap.CommonRequired})</span>
-                      </label>
-                      <select id="shipMethod" name="shipMethod" class="required">
-                          <option value=""></option>
-                      </select>
-                  </div>
-              </fieldset>
-              <fieldset>
-                <a href="javascript:void(0);" class="button" id="saveShippingMethod">${uiLabelMap.EcommerceContinueToStep} 4</a>
-                <a style="display:none" class="button" href="javascript:void(0);" id="processingBilling">${uiLabelMap.EcommercePleaseWait}....</a>
-              </fieldset>
-            </form>
-          </div>
+      <#-- ============================================================= -->
+        <div id="editShippingOptionPanel" class="screenlet-body" style="display: none;">
+          <form id="shippingOptionForm" action="<@ofbizUrl></@ofbizUrl>" method="post">
+            <fieldset>
+              <div id="shippingOptionFormServerError" class="errorMessage"></div>
+              <div>
+                <label for="shipMethod">${uiLabelMap.OrderSelectShippingMethod}*
+                  <span id="advice-required-shipping_method" class="custom-advice"
+                        style="display:none"> (${uiLabelMap.CommonRequired})</span>
+                </label>
+                <select id="shipMethod" name="shipMethod" class="required">
+                  <option value=""></option>
+                </select>
+              </div>
+            </fieldset>
+            <fieldset>
+              <a href="javascript:void(0);" class="button" id="saveShippingMethod">
+                ${uiLabelMap.EcommerceContinueToStep} 4
+              </a>
+              <a style="display:none" class="button" href="javascript:void(0);" id="processingBilling">
+                ${uiLabelMap.EcommercePleaseWait}....
+              </a>
+            </fieldset>
+          </form>
         </div>
+      </div>
 
-<#-- ========================================================================================================================== -->
-        <div id="billingPanel" class="screenlet">
-          <h3>${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}</h3>
-          <div id="billingSummaryPanel" class="screenlet-body" style="display: none;">
-            <a href="javascript:void(0);" id="openBillingPanel" class="button">${uiLabelMap.EcommerceClickHereToEdit}</a>
-            <div class="completed" id="billingCompleted">
-              <ul>
-                <li>
-                  <h4>${uiLabelMap.OrderBillUpTo}</h4>
-                  <ul>
-                    <li id="completedBillToAttn"></li>
-                    <li id="completedBillToPhoneNumber"></li>
-                    <li id="paymentMethod"></li>
-                    <li id="completedCCNumber"></li>
-                    <li id="completedExpiryDate"></li>
-                  </ul>
-                </li>
-                <li>
-                  <h4>${uiLabelMap.EcommerceLocation}</h4>
-                  <ul>
-                    <li id="completedBillToAddress1"></li>
-                    <li id="completedBillToAddress2"></li>
-                    <li id="completedBillToGeo"></li>
-                  </ul>
-                </li>
-              </ul>
-            </div>
+    <#-- ========================================================================================================================== -->
+      <div id="billingPanel" class="screenlet">
+        <h3>${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}</h3>
+        <div id="billingSummaryPanel" class="screenlet-body" style="display: none;">
+          <a href="javascript:void(0);" id="openBillingPanel" class="button">${uiLabelMap.EcommerceClickHereToEdit}</a>
+          <div class="completed" id="billingCompleted">
+            <ul>
+              <li>
+                <h4>${uiLabelMap.OrderBillUpTo}</h4>
+                <ul>
+                  <li id="completedBillToAttn"></li>
+                  <li id="completedBillToPhoneNumber"></li>
+                  <li id="paymentMethod"></li>
+                  <li id="completedCCNumber"></li>
+                  <li id="completedExpiryDate"></li>
+                </ul>
+              </li>
+              <li>
+                <h4>${uiLabelMap.EcommerceLocation}</h4>
+                <ul>
+                  <li id="completedBillToAddress1"></li>
+                  <li id="completedBillToAddress2"></li>
+                  <li id="completedBillToGeo"></li>
+                </ul>
+              </li>
+            </ul>
           </div>
+        </div>
 
-<#-- ============================================================= -->
+      <#-- ============================================================= -->
 
-          <div id="editBillingPanel" class="screenlet-body" style="display: none;">
-            <form id="billingForm" class="theform" action="<@ofbizUrl></@ofbizUrl>" method="post">
-              <fieldset class="col">
-                  <input type="hidden" id ="billToContactMechId" name="billToContactMechId" value="${billToContactMechId!}" />
-                  <input type="hidden" id="shipToContactMechIdInBillingForm" name="shipToContactMechId" value="${shipToContactMechId!}" />
-                  <input type="hidden" id="paymentMethodId" name="paymentMethodId" value="${paymentMethodId!}" />
-                  <input type="hidden" id="paymentMethodTypeId" name="paymentMethodTypeId" value="${paymentMethodTypeId?default("CREDIT_CARD")}" />
-                  <input type="hidden" id="billToPartyId" name="partyId" value="${parameters.partyId!}" />
-                  <input type="hidden" name="expireDate" value="${expireDate!}" />
-                  <input type="hidden" id="billToPhoneContactMechId" name="billToPhoneContactMechId" value="${(billToTelecomNumber.contactMechId)!}" />
-                  <input type="hidden" name="billToName" value="${billToName!}" />
-                  <input type="hidden" name="billToAttnName" value="${billToAttnName!}" />
-                  <#if userLogin??>
-                    <input type="hidden" name="keepAddressBook" value="Y" />
-                    <input type="hidden" name="setDefaultBilling" value="Y" />
-                    <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
-                    <input type="hidden" name="productStoreId" value="${productStoreId!}" />
-                  <#else>
-                    <input type="hidden" name="keepAddressBook" value="N" />
-                  </#if>
-                  <div id="billingFormServerError" class="errorMessage"></div>
-                        <div>
-                            <span>
-                                <label for="firstNameOnCard">${uiLabelMap.PartyFirstName}*
-                                    <span id="advice-required-firstNameOnCard" style="display: none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input id="firstNameOnCard" name="firstNameOnCard" class="required" type="text" value="${firstNameOnCard!}" />
-                            </span>
-                            <span>
-                                <label for="lastNameOnCard">${uiLabelMap.PartyLastName}*
-                                    <span id="advice-required-lastNameOnCard" style="display: none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input id="lastNameOnCard" name="lastNameOnCard" class="required" type="text" value="${lastNameOnCard!}" />
-                            </span>
-                        </div>
-                        <div>  
-                          <#if billToTelecomNumber?has_content>
-                            <span>
-                                <label for="billToCountryCode">${uiLabelMap.CommonCountry}*
-                                    <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToCountryCode" class="required" id="billToCountryCode" value="${billToTelecomNumber.countryCode!}" size="5" maxlength="10" /> -
-                            </span>
-                            <span>
-                                <label for="billToAreaCode">${uiLabelMap.PartyAreaCode}*
-                                    <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToAreaCode" class="required" id="billToAreaCode" value="${billToTelecomNumber.areaCode!}" size="5" maxlength="10" /> -
-                            </span>
-                            <span>
-                                <label for="billToContactNumber">${uiLabelMap.PartyContactNumber}*
-                                    <span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToContactNumber" class="required" id="billToContactNumber" value="${billToTelecomNumber.contactNumber!}" size="10" maxlength="15" /> -
-                            </span>
-                            <span>
-                                <label for="billToExtension">${uiLabelMap.PartyExtension}</label>
-                                <input type="text" name="billToExtension" id="billToExtension" value="${billToExtension!}" size="5" maxlength="10" />
-                            </span>
-                          <#else>
-                            <span>
-                                <label for="billToCountryCode">${uiLabelMap.CommonCountry}*
-                                    <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToCountryCode" class="required" id="billToCountryCode" value="${parameters.billToCountryCode!}" size="5" maxlength="10" /> -
-                            </span>
-                            <span>
-                                <label for="billToAreaCode">${uiLabelMap.PartyAreaCode}*
-                                    <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToAreaCode" class="required" id="billToAreaCode" value="${parameters.billToAreaCode!}" size="5" maxlength="10" /> -
-                            </span>
-                            <span>
-                                <label for="billToContactNumber">${uiLabelMap.PartyContactNumber}*
-                                    <span id="advice-required-billToContactNumber" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input type="text" name="billToContactNumber" class="required" id="billToContactNumber" value="${parameters.billToContactNumber!}" size="10" maxlength="15" /> -
-                            </span>
-                            <span>
-                                <label for="billToExtension">${uiLabelMap.PartyExtension}</label>
-                                <input type="text" name="billToExtension" id="billToExtension" value="${parameters.billToExtension!}" size="5" maxlength="10" />
-                            </span>
-                          </#if>
-                        </div>
-                        <div>
-                          <span>
-                                <label for="cardType">${uiLabelMap.AccountingCardType}*<span id="advice-required-cardType" style="display: none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span></label>
-                                <select name="cardType" id="cardType">
-                                  <#if cardType?has_content>
-                                    <option label="${cardType!}" value="${cardType!}">${cardType!}</option>
-                                  </#if>
-                                  ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
-                                </select>
-                          </span>
-                        </div>
-                        <div>
-                            <span>
-                                <label for="cardNumber">${uiLabelMap.AccountingCardNumber}*
-                                    <span id="advice-required-cardNumber" style="display: none;" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                                </label>
-                                <input id="cardNumber" name="cardNumber" class="required creditcard" type="text" value="${cardNumber!}" size="30" maxlength="16" />
-                            </span>
-                            <span>
-                                <label for="billToCardSecurityCode">CVV2</label>
-                                <input id="billToCardSecurityCode" name="billToCardSecurityCode" size="4" type="text" maxlength="4" value="" />
-                            </span>
-                        </div>
-                        <div>
-                          <span>
-                            <label for="expMonth">${uiLabelMap.CommonMonth}:*
-                                <span id="advice-required-expMonth" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <select id="expMonth" name="expMonth" class="required">
-                              <#if expMonth?has_content>
-                                <option label="${expMonth!}" value="${expMonth!}">${expMonth!}</option>
-                              </#if>
-                              ${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
-                            </select>
-                          </span>
-                          <span>
-                            <label for="expYear">${uiLabelMap.CommonYear}:*
-                                <span id="advice-required-expYear" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                            </label>
-                            <select id="expYear" name="expYear" class="required">
-                              <#if expYear?has_content>
-                                <option value="${expYear!}">${expYear!}</option>
-                              </#if>
-                              ${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
-                            </select>
-                          </span>
-                        </div>
-                    </fieldset>
-                    <fieldset class="col">
-                        <div>
-                                <input class="checkbox" id="useShippingAddressForBilling" name="useShippingAddressForBilling" type="checkbox" value="Y" <#if useShippingAddressForBilling?has_content && useShippingAddressForBilling?default("")=="Y">checked="checked"</#if> /><label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
-                        </div>
-                        <div id="billingAddress" <#if useShippingAddressForBilling?has_content && useShippingAddressForBilling?default("")=="Y">style="display:none"</#if>>
-                          <div>
-                              <label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*
-                                <span id="advice-required-billToAddress1" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                              </label>
-                              <input id="billToAddress1" name="billToAddress1" class="required" size="30" type="text" value="${billToAddress1!}" />
-                          </div>
-                          <div>
-                              <label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
-                              <input id="billToAddress2" name="billToAddress2" type="text" value="${billToAddress2!}" size="30" />
-                          </div>
-                          <div>
-                              <label for="billToCity">${uiLabelMap.CommonCity}*
-                                <span id="advice-required-billToCity" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                              </label>
-                              <input id="billToCity" name="billToCity" class="required" type="text" value="${billToCity!}" />
-                          </div>
-                          <div>
-                              <label for="billToPostalCode">${uiLabelMap.PartyZipCode}*
-                                <span id="advice-required-billToPostalCode" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                              </label>
-                              <input id="billToPostalCode" name="billToPostalCode" class="required" type="text" value="${billToPostalCode!}" size="12" maxlength="10" />
-                          </div>
-                          <div>
-                              <label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*
-                                <span id="advice-required-billToCountryGeoId" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                              </label>
-                              <select name="billToCountryGeoId" id="billToCountryGeoId">
-                                <#if billToCountryGeoId??>
-                                  <option value='${billToCountryGeoId!}'>${billToCountryProvinceGeo?default(billToCountryGeoId!)}</option>
-                                </#if>
-                                ${screens.render("component://common/widget/CommonScreens.xml#countries")}
-                              </select>
-                          </div>
-                          <div>
-                              <label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*
-                                <span id="advice-required-billToStateProvinceGeoId" style="display:none" class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
-                              </label>
-                              <select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
-                                <#if billToStateProvinceGeoId?has_content>
-                                  <option value='${billToStateProvinceGeoId!}'>${billToStateProvinceGeo?default(billToStateProvinceGeoId!)}</option>
-                                <#else>
-                                  <option value="_NA_">${uiLabelMap.PartyNoState}</option>
-                                </#if>
-                              </select>
-                          </div>
-                        </div>
-                    </fieldset>
-                    <br style="clear:both;"/>
-                    <fieldset>
-                      <a href="javascript:void(0);" class="button" id="savePaymentAndBillingContact">${uiLabelMap.EcommerceContinueToStep} 5</a>
-                      <a href="javascript:void(0);" class="button" style="display: none;" id="processingOrderSubmitPanel">${uiLabelMap.EcommercePleaseWait}....</a>
-                    </fieldset>
-            </form>
-          </div>
+        <div id="editBillingPanel" class="screenlet-body" style="display: none;">
+          <form id="billingForm" class="theform" action="<@ofbizUrl></@ofbizUrl>" method="post">
+            <fieldset class="col">
+              <input type="hidden" id="billToContactMechId" name="billToContactMechId" value="${billToContactMechId!}"/>
+              <input type="hidden" id="shipToContactMechIdInBillingForm" name="shipToContactMechId"
+                     value="${shipToContactMechId!}"/>
+              <input type="hidden" id="paymentMethodId" name="paymentMethodId" value="${paymentMethodId!}"/>
+              <input type="hidden" id="paymentMethodTypeId" name="paymentMethodTypeId"
+                     value="${paymentMethodTypeId?default("CREDIT_CARD")}"/>
+              <input type="hidden" id="billToPartyId" name="partyId" value="${parameters.partyId!}"/>
+              <input type="hidden" name="expireDate" value="${expireDate!}"/>
+              <input type="hidden" id="billToPhoneContactMechId" name="billToPhoneContactMechId"
+                     value="${(billToTelecomNumber.contactMechId)!}"/>
+              <input type="hidden" name="billToName" value="${billToName!}"/>
+              <input type="hidden" name="billToAttnName" value="${billToAttnName!}"/>
+              <#if userLogin??>
+                <input type="hidden" name="keepAddressBook" value="Y"/>
+                <input type="hidden" name="setDefaultBilling" value="Y"/>
+                <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
+                <input type="hidden" name="productStoreId" value="${productStoreId!}"/>
+              <#else>
+                <input type="hidden" name="keepAddressBook" value="N"/>
+              </#if>
+              <div id="billingFormServerError" class="errorMessage"></div>
+              <div>
+                <span>
+                  <label for="firstNameOnCard">${uiLabelMap.PartyFirstName}*
+                    <span id="advice-required-firstNameOnCard" style="display: none;" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="firstNameOnCard" name="firstNameOnCard" class="required" type="text"
+                      value="${firstNameOnCard!}"/>
+                </span>
+                <span>
+                  <label for="lastNameOnCard">${uiLabelMap.PartyLastName}*
+                    <span id="advice-required-lastNameOnCard" style="display: none;"
+                        class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
+                  </label>
+                  <input id="lastNameOnCard" name="lastNameOnCard" class="required" type="text"
+                      value="${lastNameOnCard!}"/>
+                </span>
+              </div>
+              <div>
+                <#if billToTelecomNumber?has_content>
+                  <span>
+                    <label for="billToCountryCode">${uiLabelMap.CommonCountry}*
+                      <span id="advice-required-billToCountryCode" style="display:none"
+                          class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
+                    </label>
+                    <input type="text" name="billToCountryCode" class="required" id="billToCountryCode"
+                        value="${billToTelecomNumber.countryCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="billToAreaCode">${uiLabelMap.PartyAreaCode}*
+                        <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage">
+                          (${uiLabelMap.CommonRequired})
+                        </span>
+                    </label>
+                    <input type="text" name="billToAreaCode" class="required" id="billToAreaCode"
+                        value="${billToTelecomNumber.areaCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="billToContactNumber">${uiLabelMap.PartyContactNumber}*
+                      <span id="advice-required-billToContactNumber" style="display:none"
+                          class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
+                    </label>
+                    <input type="text" name="billToContactNumber" class="required" id="billToContactNumber"
+                        value="${billToTelecomNumber.contactNumber!}" size="10" maxlength="15"/> -
+                  </span>
+                  <span>
+                    <label for="billToExtension">${uiLabelMap.PartyExtension}</label>
+                    <input type="text" name="billToExtension" id="billToExtension"
+                        value="${billToExtension!}" size="5" maxlength="10"/>
+                  </span>
+                <#else>
+                  <span>
+                    <label for="billToCountryCode">${uiLabelMap.CommonCountry}*
+                      <span id="advice-required-billToCountryCode" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
+                      </span>
+                    </label>
+                    <input type="text" name="billToCountryCode" class="required" id="billToCountryCode"
+                        value="${parameters.billToCountryCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="billToAreaCode">${uiLabelMap.PartyAreaCode}*
+                        <span id="advice-required-billToAreaCode" style="display:none" class="errorMessage">
+                          (${uiLabelMap.CommonRequired})
+                        </span>
+                    </label>
+                    <input type="text" name="billToAreaCode" class="required" id="billToAreaCode"
+                        value="${parameters.billToAreaCode!}" size="5" maxlength="10"/> -
+                  </span>
+                  <span>
+                    <label for="billToContactNumber">${uiLabelMap.PartyContactNumber}*
+                      <span id="advice-required-billToContactNumber" style="display:none"
+                          class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
+                    </label>
+                    <input type="text" name="billToContactNumber" class="required" id="billToContactNumber"
+                        value="${parameters.billToContactNumber!}" size="10" maxlength="15"/> -
+                  </span>
+                  <span>
+                    <label for="billToExtension">${uiLabelMap.PartyExtension}</label>
+                    <input type="text" name="billToExtension" id="billToExtension"
+                        value="${parameters.billToExtension!}" size="5" maxlength="10"/>
+                  </span>
+                </#if>
+              </div>
+              <div>
+                <span>
+                  <label for="cardType">${uiLabelMap.AccountingCardType}*
+                    <span id="advice-required-cardType" style="display: none;" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <select name="cardType" id="cardType">
+                    <#if cardType?has_content>
+                      <option label="${cardType!}" value="${cardType!}">${cardType!}</option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
+                  </select>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="cardNumber">${uiLabelMap.AccountingCardNumber}*
+                    <span id="advice-required-cardNumber" style="display: none;" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="cardNumber" name="cardNumber" class="required creditcard" type="text"
+                      value="${cardNumber!}" size="30" maxlength="16"/>
+                </span>
+                <span>
+                  <label for="billToCardSecurityCode">CVV2</label>
+                  <input id="billToCardSecurityCode" name="billToCardSecurityCode" size="4" type="text"
+                      maxlength="4" value=""/>
+                </span>
+              </div>
+              <div>
+                <span>
+                  <label for="expMonth">${uiLabelMap.CommonMonth}:*
+                    <span id="advice-required-expMonth" style="display:none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <select id="expMonth" name="expMonth" class="required">
+                    <#if expMonth?has_content>
+                      <option label="${expMonth!}" value="${expMonth!}">${expMonth!}</option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
+                  </select>
+                </span>
+                <span>
+                  <label for="expYear">${uiLabelMap.CommonYear}:*
+                      <span id="advice-required-expYear" style="display:none" class="errorMessage">
+                        (${uiLabelMap.CommonRequired})
+                      </span>
+                  </label>
+                  <select id="expYear" name="expYear" class="required">
+                    <#if expYear?has_content>
+                      <option value="${expYear!}">${expYear!}</option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
+                  </select>
+                </span>
+              </div>
+            </fieldset>
+            <fieldset class="col">
+              <div>
+                <input class="checkbox" id="useShippingAddressForBilling" name="useShippingAddressForBilling"
+                       type="checkbox" value="Y"
+                       <#if useShippingAddressForBilling?has_content && useShippingAddressForBilling?default("")=="Y">checked="checked"</#if>/>
+                <label for="useShippingAddressForBilling">${uiLabelMap.FacilityBillingAddressSameShipping}</label>
+              </div>
+              <div id="billingAddress"
+                  <#if useShippingAddressForBilling?has_content && useShippingAddressForBilling?default("")=="Y">style="display:none"</#if>>
+                <div>
+                  <label for="billToAddress1">${uiLabelMap.PartyAddressLine1}*
+                    <span id="advice-required-billToAddress1" style="display:none"
+                        class="errorMessage"> (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="billToAddress1" name="billToAddress1" class="required" size="30" type="text"
+                      value="${billToAddress1!}"/>
+                </div>
+                <div>
+                  <label for="billToAddress2">${uiLabelMap.PartyAddressLine2}</label>
+                  <input id="billToAddress2" name="billToAddress2" type="text" value="${billToAddress2!}" size="30"/>
+                </div>
+                <div>
+                  <label for="billToCity">${uiLabelMap.CommonCity}*
+                    <span id="advice-required-billToCity" style="display:none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="billToCity" name="billToCity" class="required" type="text" value="${billToCity!}"/>
+                </div>
+                <div>
+                  <label for="billToPostalCode">${uiLabelMap.PartyZipCode}*
+                    <span id="advice-required-billToPostalCode" style="display:none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <input id="billToPostalCode" name="billToPostalCode" class="required" type="text"
+                      value="${billToPostalCode!}" size="12" maxlength="10"/>
+                </div>
+                <div>
+                  <label for="billToCountryGeoId">${uiLabelMap.CommonCountry}*
+                    <span id="advice-required-billToCountryGeoId" style="display:none" class="errorMessage">
+                      (${uiLabelMap.CommonRequired})
+                    </span>
+                  </label>
+                  <select name="billToCountryGeoId" id="billToCountryGeoId">
+                    <#if billToCountryGeoId??>
+                      <option value='${billToCountryGeoId!}'>
+                        ${billToCountryProvinceGeo?default(billToCountryGeoId!)}
+                      </option>
+                    </#if>
+                    ${screens.render("component://common/widget/CommonScreens.xml#countries")}
+                  </select>
+                </div>
+                <div>
+                  <label for="billToStateProvinceGeoId">${uiLabelMap.CommonState}*
+                    <span id="advice-required-billToStateProvinceGeoId" style="display:none"
+                        class="errorMessage"> (${uiLabelMap.CommonRequired})</span>
+                  </label>
+                  <select id="billToStateProvinceGeoId" name="billToStateProvinceGeoId">
+                    <#if billToStateProvinceGeoId?has_content>
+                      <option value='${billToStateProvinceGeoId!}'>
+                        ${billToStateProvinceGeo?default(billToStateProvinceGeoId!)}
+                      </option>
+                    <#else>
+                      <option value="_NA_">${uiLabelMap.PartyNoState}</option>
+                    </#if>
+                  </select>
+                </div>
+              </div>
+            </fieldset>
+            <br style="clear:both;"/>
+            <fieldset>
+              <a href="javascript:void(0);" class="button" id="savePaymentAndBillingContact">
+                ${uiLabelMap.EcommerceContinueToStep} 5
+              </a>
+              <a href="javascript:void(0);" class="button" style="display: none;" id="processingOrderSubmitPanel">
+                ${uiLabelMap.EcommercePleaseWait}....
+              </a>
+            </fieldset>
+          </form>
         </div>
+      </div>
 
-<#-- ========================================================================================================================== -->
-        <div class="screenlet">
-          <h3>${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}</h3>
-          <div id="orderSubmitPanel" style="display: none;">
-            <form id="orderSubmitForm" action="<@ofbizUrl>onePageProcessOrder</@ofbizUrl>" method="post">
-                <fieldset>
-                    <input type="button" id="processOrderButton" name="processOrderButton" value="${uiLabelMap.OrderSubmitOrder}" />
-                    <input type="button" style="display: none;" id="processingOrderButton" name="processingOrderButton" value="${uiLabelMap.OrderSubmittingOrder}" />
-                </fieldset>
-            </form>
-          </div>
+    <#-- ========================================================================================================================== -->
+      <div class="screenlet">
+        <h3>${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}</h3>
+        <div id="orderSubmitPanel" style="display: none;">
+          <form id="orderSubmitForm" action="<@ofbizUrl>onePageProcessOrder</@ofbizUrl>" method="post">
+            <fieldset>
+              <input type="button" id="processOrderButton" name="processOrderButton"
+                  value="${uiLabelMap.OrderSubmitOrder}"/>
+              <input type="button" style="display: none;" id="processingOrderButton" name="processingOrderButton"
+                  value="${uiLabelMap.OrderSubmittingOrder}"/>
+            </fieldset>
+          </form>
         </div>
       </div>
-    </#if>
+    </div>
+  </#if>
 
 <#-- ========================================================================================================================== -->
-    <div id="emptyCartCheckoutPanel" <#if shoppingCart?has_content && shoppingCart.size() &gt; 0> style="display: none;"</#if>>
-        <h3>${uiLabelMap.EcommerceStep} 1: ${uiLabelMap.PageTitleShoppingCart}</h3>
-        <span>You currently have no items in your cart. Click <a href="<@ofbizUrl>main</@ofbizUrl>">here</a> to view our products.</span>
-        <h3>${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}</h3>
-        <h3>${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}</h3>
-        <h3>${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}</h3>
-        <h3>${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}</h3>
-    </div>
+  <div id="emptyCartCheckoutPanel" <#if shoppingCart?has_content && shoppingCart.size() &gt; 0>
+       style="display: none;"</#if>>
+    <h3>${uiLabelMap.EcommerceStep} 1: ${uiLabelMap.PageTitleShoppingCart}</h3>
+    <span>You currently have no items in your cart. Click
+      <a href="<@ofbizUrl>main</@ofbizUrl>">here</a> to view our products.
+    </span>
+    <h3>${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}</h3>
+    <h3>${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}</h3>
+    <h3>${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}</h3>
+    <h3>${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}</h3>
+  </div>
 </div>
Index: specialpurpose/ecommerce/template/order/OptionSettings.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OptionSettings.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OptionSettings.ftl	(working copy)
@@ -17,69 +17,84 @@
 under the License.
 -->
 
-  <h3>${uiLabelMap.OrderShippingInformation}</h3>
-  <form id="shipOptionsAndShippingInstructions" method="post" action="<@ofbizUrl>processShipOptions</@ofbizUrl>" name="${parameters.formNameValue}">
-    <fieldset><legend>${uiLabelMap.OrderShippingInformation}</legend>
-      <input type="hidden" name="finalizeMode" value="options"/>
-      <ul>
-      <#list carrierShipmentMethodList as carrierShipmentMethod>
-        <li>
-          <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId>
-          <input type="radio" id="shipping_method_${shippingMethod}" name="shipping_method" value="${shippingMethod}" <#if shippingMethod == chosenShippingMethod?default("N@A")>checked="checked"</#if>/>
-          <label for="shipping_method_${shippingMethod}">
-            <#if shoppingCart.getShippingContactMechId()??>
-              <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)>
-            </#if>
-            <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!}&nbsp;</#if>${carrierShipmentMethod.description!}
-              <#if shippingEst?has_content> - <#if (shippingEst > -1)><@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/><#else>${uiLabelMap.OrderCalculatedOffline}</#if>
-             </#if>
-          </label>
-        </li>
-      </#list>
-      <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0>
-        <div>
-          <input type="radio" name="shipping_method" value="Default" checked="checked"/>
-          <label for="shipping_method">${uiLabelMap.OrderUseDefault}.</label>
-        </div>
-      </#if>
-    </fieldset>
-    <fieldset><legend>${uiLabelMap.OrderShipAllAtOnce}?</legend>
-        <div>
-          <input type="radio" id="maySplit_N" <#if shoppingCart.getMaySplit()?default("N") == "N">checked="checked"</#if> name="may_split" value="false"/>
-          <label for="maySplit_N">${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.</label>
-        </div>
-        <div>
-          <input type="radio" id="maySplit_Y" <#if shoppingCart.getMaySplit()?default("N") == "Y">checked="checked"</#if> name="may_split" value="true"/>
-          <label for="maySplit_Y">${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.</label>
-        </div>
-    </fieldset>
+<h3>${uiLabelMap.OrderShippingInformation}</h3>
+<form id="shipOptionsAndShippingInstructions" method="post" action="<@ofbizUrl>processShipOptions</@ofbizUrl>"
+    name="${parameters.formNameValue}">
+  <fieldset>
+    <legend>${uiLabelMap.OrderShippingInformation}</legend>
+    <input type="hidden" name="finalizeMode" value="options"/>
+    <ul>
+    <#list carrierShipmentMethodList as carrierShipmentMethod>
+      <li>
+        <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId>
+        <input type="radio" id="shipping_method_${shippingMethod}" name="shipping_method" value="${shippingMethod}"
+            <#if shippingMethod == chosenShippingMethod?default("N@A")>checked="checked"</#if>/>
+        <label for="shipping_method_${shippingMethod}">
+          <#if shoppingCart.getShippingContactMechId()??>
+            <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)>
+          </#if>
+          <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!}
+              &nbsp;</#if>${carrierShipmentMethod.description!}
+          <#if shippingEst?has_content>
+            - <#if (shippingEst > -1)>
+                <@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/>
+              <#else>
+                ${uiLabelMap.OrderCalculatedOffline}
+              </#if>
+          </#if>
+        </label>
+      </li>
+    </#list>
+    <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0>
+      <div>
+        <input type="radio" name="shipping_method" value="Default" checked="checked"/>
+        <label for="shipping_method">${uiLabelMap.OrderUseDefault}.</label>
+      </div>
+    </#if>
+  </fieldset>
+  <fieldset>
+    <legend>${uiLabelMap.OrderShipAllAtOnce}?</legend>
+    <div>
+      <input type="radio" id="maySplit_N" <#if shoppingCart.getMaySplit()?default("N") == "N">checked="checked"</#if>
+          name="may_split" value="false"/>
+      <label for="maySplit_N">${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.</label>
+    </div>
+    <div>
+      <input type="radio" id="maySplit_Y" <#if shoppingCart.getMaySplit()?default("N") == "Y">checked="checked"</#if>
+          name="may_split" value="true"/>
+      <label for="maySplit_Y">${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.</label>
+    </div>
+  </fieldset>
+  <fieldset>
+    <div>
+      <label for="shipping_instructions">${uiLabelMap.OrderSpecialInstructions}</label>
+      <textarea cols="30" rows="3" name="shipping_instructions">${shoppingCart.getShippingInstructions()!}</textarea>
+    </div>
+    <div>
+      <label for="correspondingPoId">${uiLabelMap.OrderPoNumber}</label>
+      <input type="text" name="correspondingPoId" value="${shoppingCart.getPoNumber()!}"/>
+    </div>
+  </fieldset>
+  <#if productStore.showCheckoutGiftOptions! != "N">
     <fieldset>
-        <div>
-          <label for="shipping_instructions">${uiLabelMap.OrderSpecialInstructions}</label>
-          <textarea cols="30" rows="3" name="shipping_instructions">${shoppingCart.getShippingInstructions()!}</textarea>
-        </div>
-        <div>
-          <label for="correspondingPoId">${uiLabelMap.OrderPoNumber}</label>
-          <input type="text" name="correspondingPoId" value="${shoppingCart.getPoNumber()!}"/>
-        </div>
+      <legend>${uiLabelMap.OrderIsThisGift}</legend>
+      <div>
+        <input type="radio" id="is_gift_Y" <#if shoppingCart.getIsGift()?default("Y") == "Y">checked="checked"</#if>
+            name="is_gift" value="true"/>
+        <label for="is_gift_Y">${uiLabelMap.CommonYes}</label>
+      </div>
+      <div>
+        <input type="radio" id="is_gift_N" <#if shoppingCart.getIsGift()?default("N") == "N">checked="checked"</#if>
+            name="is_gift" value="false"/>
+        <label far="is_gift_N">${uiLabelMap.CommonNo}</label>
+      </div>
+      <div>
+        <label for="gift_message">${uiLabelMap.OrderGiftMessage}</label>
+        <textarea class="textAreaBox" name="gift_message">${shoppingCart.getGiftMessage()!}</textarea>
+      </div>
     </fieldset>
-    <#if productStore.showCheckoutGiftOptions! != "N">
-        <fieldset><legend>${uiLabelMap.OrderIsThisGift}</legend>
-          <div>
-            <input type="radio" id="is_gift_Y" <#if shoppingCart.getIsGift()?default("Y") == "Y">checked="checked"</#if> name="is_gift" value="true"/>
-            <label for="is_gift_Y">${uiLabelMap.CommonYes}</label>
-          </div>
-          <div>
-            <input type="radio" id="is_gift_N" <#if shoppingCart.getIsGift()?default("N") == "N">checked="checked"</#if> name="is_gift" value="false"/>
-            <label far="is_gift_N">${uiLabelMap.CommonNo}</label>
-          </div>
-          <div>
-            <label for="gift_message">${uiLabelMap.OrderGiftMessage}</label>
-            <textarea class="textAreaBox" name="gift_message">${shoppingCart.getGiftMessage()!}</textarea>
-          </div>
-        </fieldset>
-    </#if>
-    <div class="buttons">
-      <input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}"/>
-    </div>
-  </form>
+  </#if>
+  <div class="buttons">
+    <input type="submit" class="smallsubmit" value="${uiLabelMap.CommonContinue}"/>
+  </div>
+</form>
Index: specialpurpose/ecommerce/template/order/OrderHeader.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OrderHeader.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OrderHeader.ftl	(working copy)
@@ -26,288 +26,304 @@
 
 <div id="orderHeader">
 <#-- left side -->
-<div class="columnLeft">
-<div class="screenlet">
-  <h3>
-    <#if maySelectItems?default("N") == "Y" && returnLink?default("N") == "Y" && (orderHeader.statusId)! == "ORDER_COMPLETED" && roleTypeId! == "PLACING_CUSTOMER">
-      <a href="<@ofbizUrl fullPath="true">makeReturn?orderId=${orderHeader.orderId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderRequestReturn}</a>
-    </#if>
-    ${uiLabelMap.OrderOrder}
-    <#if orderHeader?has_content>
-      ${uiLabelMap.CommonNbr}<a href="<@ofbizUrl fullPath="true">orderstatus?orderId=${orderHeader.orderId}</@ofbizUrl>" class="lightbuttontext">${orderHeader.orderId}</a>
-    </#if>
-    ${uiLabelMap.CommonInformation}
-    <#if (orderHeader.orderId)??>
-      ${externalOrder!} [ <a href="<@ofbizUrl fullPath="true">order.pdf?orderId=${(orderHeader.orderId)!}</@ofbizUrl>" target="_BLANK" class="lightbuttontext">PDF</a> ]
-    </#if>
-  </h3>
-  <#-- placing customer information -->
-  <ul>
-    <#if localOrderReadHelper?? && orderHeader?has_content>
-      <#assign displayParty = localOrderReadHelper.getPlacingParty()!/>
-      <#if displayParty?has_content>
-        <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/>
+  <div class="columnLeft">
+    <div class="screenlet">
+      <h3>
+      <#if maySelectItems?default("N") == "Y" && returnLink?default("N") == "Y" && (orderHeader.statusId)! == "ORDER_COMPLETED" && roleTypeId! == "PLACING_CUSTOMER">
+        <a href="<@ofbizUrl fullPath="true">makeReturn?orderId=${orderHeader.orderId}</@ofbizUrl>"
+            class="submenutextright">${uiLabelMap.OrderRequestReturn}</a>
       </#if>
-      <li>
-        ${uiLabelMap.PartyName}
-        ${(displayPartyNameResult.fullName)?default("[Name Not Found]")}
-      </li>
-    </#if>
-    <#-- order status information -->
-    <li>
-      ${uiLabelMap.CommonStatus}
+      ${uiLabelMap.OrderOrder}
       <#if orderHeader?has_content>
-        ${localOrderReadHelper.getStatusString(locale)}
-      <#else>
-        ${uiLabelMap.OrderNotYetOrdered}
+        ${uiLabelMap.CommonNbr}
+        <a href="<@ofbizUrl fullPath="true">orderstatus?orderId=${orderHeader.orderId}</@ofbizUrl>"
+            class="lightbuttontext">${orderHeader.orderId}</a>
       </#if>
-    </li>
-    <#-- ordered date -->
-    <#if orderHeader?has_content>
-      <li>
-        ${uiLabelMap.CommonDate}
-        ${orderHeader.orderDate.toString()}
-      </li>
-    </#if>
-    <#if distributorId??>
-      <li>
-        ${uiLabelMap.OrderDistributor}
-        ${distributorId}
-      </li>
-    </#if>
-  </ul>
-</div>
-
-<div class="screenlet">
-  <#if paymentMethods?has_content || paymentMethodType?has_content || billingAccount?has_content>
-    <#-- order payment info -->
-    <h3>${uiLabelMap.AccountingPaymentInformation}</h3>
-    <#-- offline payment address infomation :: change this to use Company's address -->
-    <ul>
-      <#if !paymentMethod?has_content && paymentMethodType?has_content>
+      ${uiLabelMap.CommonInformation}
+      <#if (orderHeader.orderId)??>
+        ${externalOrder!} [ <a href="<@ofbizUrl fullPath="true">order.pdf?orderId=${(orderHeader.orderId)!}</@ofbizUrl>"
+            target="_BLANK" class="lightbuttontext">PDF</a> ]
+      </#if>
+      </h3>
+      <#-- placing customer information -->
+      <ul>
+        <#if localOrderReadHelper?? && orderHeader?has_content>
+          <#assign displayParty = localOrderReadHelper.getPlacingParty()!/>
+          <#if displayParty?has_content>
+            <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/>
+          </#if>
+          <li>
+            ${uiLabelMap.PartyName}
+            ${(displayPartyNameResult.fullName)?default("[Name Not Found]")}
+          </li>
+        </#if>
+        <#-- order status information -->
         <li>
-          <#if paymentMethodType.paymentMethodTypeId == "EXT_OFFLINE">
-            ${uiLabelMap.AccountingOfflinePayment}
-            <#if orderHeader?has_content && paymentAddress?has_content>
-              ${uiLabelMap.OrderSendPaymentTo}:
-              <#if paymentAddress.toName?has_content>${paymentAddress.toName}</#if>
-              <#if paymentAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${paymentAddress.attnName}</#if>
-              ${paymentAddress.address1}
-              <#if paymentAddress.address2?has_content>${paymentAddress.address2}</#if>
-              <#assign paymentStateGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.stateProvinceGeoId!}, false))! />
-              ${paymentAddress.city}<#if paymentStateGeo?has_content>, ${paymentStateGeo.geoName!}</#if> ${paymentAddress.postalCode!}
-              <#assign paymentCountryGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.countryGeoId!}, false))! />
-              <#if paymentCountryGeo?has_content>${paymentCountryGeo.geoName!}</#if>
-              ${uiLabelMap.EcommerceBeSureToIncludeYourOrderNb}
-            </#if>
+          ${uiLabelMap.CommonStatus}
+          <#if orderHeader?has_content>
+            ${localOrderReadHelper.getStatusString(locale)}
           <#else>
-            <#assign outputted = true>
-            ${uiLabelMap.AccountingPaymentVia} ${paymentMethodType.get("description",locale)}
+            ${uiLabelMap.OrderNotYetOrdered}
           </#if>
         </li>
-      </#if>
-      <#if paymentMethods?has_content>
-        <#list paymentMethods as paymentMethod>
-          <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
-            <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
-            <#assign formattedCardNumber = Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)>
-          <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId>
-            <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)>
-          <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
-            <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
-          </#if>
-          <#-- credit card info -->
-          <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && creditCard?has_content>
-            <#if outputted?default(false)>
-            </#if>
-            <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress", false)!>
+        <#-- ordered date -->
+        <#if orderHeader?has_content>
+          <li>
+            ${uiLabelMap.CommonDate}
+            ${orderHeader.orderDate.toString()}
+          </li>
+        </#if>
+        <#if distributorId??>
+          <li>
+            ${uiLabelMap.OrderDistributor}
+            ${distributorId}
+          </li>
+        </#if>
+      </ul>
+    </div>
+
+    <div class="screenlet">
+      <#if paymentMethods?has_content || paymentMethodType?has_content || billingAccount?has_content>
+        <#-- order payment info -->
+        <h3>${uiLabelMap.AccountingPaymentInformation}</h3>
+        <#-- offline payment address infomation :: change this to use Company's address -->
+        <ul>
+          <#if !paymentMethod?has_content && paymentMethodType?has_content>
             <li>
-              <ul>
-                <li> ${uiLabelMap.AccountingCreditCard}
-                  <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard}</#if>
-                  <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard}</#if>
-                  ${creditCard.firstNameOnCard}
-                  <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard}</#if>
-                  ${creditCard.lastNameOnCard}
-                  <#if creditCard.suffixOnCard?has_content>${creditCard.suffixOnCard}</#if>
-                </li>
-                <li>${formattedCardNumber}</li>
-              </ul>
-            </li>
-            <#-- Gift Card info -->
-          <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId && giftCard?has_content>
-            <#if outputted?default(false)>
-            </#if>
-            <#if giftCard?has_content && giftCard.cardNumber?has_content>
-              <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)!>
-              <#assign giftCardNumber = "">
-              <#assign pcardNumber = giftCard.cardNumber>
-              <#if pcardNumber?has_content>
-                <#assign psize = pcardNumber?length - 4>
-                <#if 0 < psize>
-                  <#list 0 .. psize-1 as foo>
-                    <#assign giftCardNumber = giftCardNumber + "*">
-                  </#list>
-                  <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]>
-                <#else>
-                  <#assign giftCardNumber = pcardNumber>
+              <#if paymentMethodType.paymentMethodTypeId == "EXT_OFFLINE">
+                ${uiLabelMap.AccountingOfflinePayment}
+                <#if orderHeader?has_content && paymentAddress?has_content>
+                  ${uiLabelMap.OrderSendPaymentTo}:
+                  <#if paymentAddress.toName?has_content>${paymentAddress.toName}</#if>
+                  <#if paymentAddress.attnName?has_content>
+                    ${uiLabelMap.PartyAddrAttnName}  : ${paymentAddress.attnName}
+                  </#if>
+                  ${paymentAddress.address1}
+                  <#if paymentAddress.address2?has_content>${paymentAddress.address2}</#if>
+                  <#assign paymentStateGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.stateProvinceGeoId!}, false))! />
+                  ${paymentAddress.city}
+                  <#if paymentStateGeo?has_content>, ${paymentStateGeo.geoName!}</#if>
+                  ${paymentAddress.postalCode!}
+                  <#assign paymentCountryGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.countryGeoId!}, false))! />
+                  <#if paymentCountryGeo?has_content>${paymentCountryGeo.geoName!}</#if>
+                  ${uiLabelMap.EcommerceBeSureToIncludeYourOrderNb}
                 </#if>
+              <#else>
+                <#assign outputted = true>
+                ${uiLabelMap.AccountingPaymentVia} ${paymentMethodType.get("description",locale)}
               </#if>
-            </#if>
-            <li>
-              ${uiLabelMap.AccountingGiftCard}
-              ${giftCardNumber}
             </li>
-            <#-- EFT account info -->
-          <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId && eftAccount?has_content>
-            <#if outputted?default(false)>
-            </#if>
-            <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)!>
-            <li>
-              <ul>
+          </#if>
+          <#if paymentMethods?has_content>
+            <#list paymentMethods as paymentMethod>
+              <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
+                <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
+                <#assign formattedCardNumber = Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)>
+              <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId>
+                <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)>
+              <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
+                <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
+              </#if>
+              <#-- credit card info -->
+              <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && creditCard?has_content>
+                <#if outputted?default(false)></#if>
+                <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress", false)!>
                 <li>
-                  ${uiLabelMap.AccountingEFTAccount}
-                  ${eftAccount.nameOnAccount!}
+                  <ul>
+                    <li> ${uiLabelMap.AccountingCreditCard}
+                      <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard}</#if>
+                      <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard}</#if>
+                      ${creditCard.firstNameOnCard}
+                      <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard}</#if>
+                      ${creditCard.lastNameOnCard}
+                      <#if creditCard.suffixOnCard?has_content>${creditCard.suffixOnCard}</#if>
+                    </li>
+                    <li>${formattedCardNumber}</li>
+                  </ul>
                 </li>
+                <#-- Gift Card info -->
+              <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId && giftCard?has_content>
+                <#if outputted?default(false)></#if>
+                <#if giftCard?has_content && giftCard.cardNumber?has_content>
+                  <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)!>
+                  <#assign giftCardNumber = "">
+                  <#assign pcardNumber = giftCard.cardNumber>
+                  <#if pcardNumber?has_content>
+                    <#assign psize = pcardNumber?length - 4>
+                    <#if 0 < psize>
+                      <#list 0 .. psize-1 as foo>
+                        <#assign giftCardNumber = giftCardNumber + "*">
+                      </#list>
+                      <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]>
+                    <#else>
+                      <#assign giftCardNumber = pcardNumber>
+                    </#if>
+                  </#if>
+                </#if>
                 <li>
-                  <#if eftAccount.companyNameOnAccount?has_content>${eftAccount.companyNameOnAccount}</#if>
+                  ${uiLabelMap.AccountingGiftCard}
+                  ${giftCardNumber}
                 </li>
+                <#-- EFT account info -->
+              <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId && eftAccount?has_content>
+                <#if outputted?default(false)></#if>
+                <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)!>
                 <li>
-                  ${uiLabelMap.AccountingBank}: ${eftAccount.bankName}, ${eftAccount.routingNumber}
+                  <ul>
+                    <li>
+                      ${uiLabelMap.AccountingEFTAccount}
+                      ${eftAccount.nameOnAccount!}
+                    </li>
+                    <li>
+                      <#if eftAccount.companyNameOnAccount?has_content>${eftAccount.companyNameOnAccount}</#if>
+                    </li>
+                    <li>
+                      ${uiLabelMap.AccountingBank}: ${eftAccount.bankName}, ${eftAccount.routingNumber}
+                    </li>
+                    <li>
+                      ${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber}
+                    </li>
+                  </ul>
                 </li>
+              </#if>
+              <#if pmBillingAddress?has_content>
                 <li>
-                  ${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber}
+                  <ul>
+                    <li>
+                      <#if pmBillingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${pmBillingAddress.toName}</#if>
+                    </li>
+                    <li>
+                      <#if pmBillingAddress.attnName?has_content>
+                        ${uiLabelMap.CommonAttn}  : ${pmBillingAddress.attnName}
+                      </#if>
+                    </li>
+                    <li>
+                      ${pmBillingAddress.address1}
+                    </li>
+                    <li>
+                      <#if pmBillingAddress.address2?has_content>${pmBillingAddress.address2}</#if>
+                    </li>
+                    <li>
+                      <#assign pmBillingStateGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.stateProvinceGeoId!}, false))! />
+                      ${pmBillingAddress.city}
+                      <#if pmBillingStateGeo?has_content>  , ${ pmBillingStateGeo.geoName!}</#if>
+                      ${pmBillingAddress.postalCode!}
+                      <#assign pmBillingCountryGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.countryGeoId!}, false))! />
+                      <#if pmBillingCountryGeo?has_content>${pmBillingCountryGeo.geoName!}</#if>
+                    </li>
+                  </ul>
                 </li>
-              </ul>
+              </#if>
+              <#assign outputted = true>
+            </#list>
+          </#if>
+          <#-- billing account info -->
+          <#if billingAccount?has_content>
+            <#if outputted?default(false)></#if>
+            <#assign outputted = true>
+            <li>
+              ${uiLabelMap.AccountingBillingAccount}
+              #${billingAccount.billingAccountId!} - ${billingAccount.description!}
             </li>
           </#if>
-          <#if pmBillingAddress?has_content>
+          <#if (customerPoNumberSet?has_content)>
             <li>
+              ${uiLabelMap.OrderPurchaseOrderNumber}
+              <#list customerPoNumberSet as customerPoNumber>
+                ${customerPoNumber!}
+              </#list>
+            </li>
+          </#if>
+        </ul>
+      </#if>
+    </div>
+  </div>
+  <#-- right side -->
+  <div class="screenlet columnRight">
+    <#if orderItemShipGroups?has_content>
+      <h3>${uiLabelMap.OrderShippingInformation}</h3>
+      <#-- shipping address -->
+      <#assign groupIdx = 0>
+      <#list orderItemShipGroups as shipGroup>
+        <#if orderHeader?has_content>
+          <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!>
+          <#assign groupNumber = shipGroup.shipGroupSeqId!>
+        <#else>
+          <#assign shippingAddress = cart.getShippingAddress(groupIdx)!>
+          <#assign groupNumber = groupIdx + 1>
+        </#if>
+        <ul>
+          <#if shippingAddress?has_content>
+            <li>
               <ul>
                 <li>
-                  <#if pmBillingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${pmBillingAddress.toName}</#if>
+                  ${uiLabelMap.OrderDestination} [${groupNumber}]
+                  <#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName}</#if>
                 </li>
                 <li>
-                  <#if pmBillingAddress.attnName?has_content>${uiLabelMap.CommonAttn}: ${pmBillingAddress.attnName}</#if>
+                  <#if shippingAddress.attnName?has_content>
+                    ${uiLabelMap.PartyAddrAttnName}  : ${shippingAddress.attnName}
+                  </#if>
                 </li>
                 <li>
-                  ${pmBillingAddress.address1}
+                  ${shippingAddress.address1}
                 </li>
                 <li>
-                  <#if pmBillingAddress.address2?has_content>${pmBillingAddress.address2}</#if>
+                  <#if shippingAddress.address2?has_content>${shippingAddress.address2}</#if>
                 </li>
                 <li>
-                <#assign pmBillingStateGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.stateProvinceGeoId!}, false))! />
-                ${pmBillingAddress.city}<#if pmBillingStateGeo?has_content>, ${ pmBillingStateGeo.geoName!}</#if> ${pmBillingAddress.postalCode!}
-                <#assign pmBillingCountryGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.countryGeoId!}, false))! />
-                <#if pmBillingCountryGeo?has_content>${pmBillingCountryGeo.geoName!}</#if>
+                  <#assign shippingStateGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.stateProvinceGeoId!}, false))! />
+                  ${shippingAddress.city}
+                  <#if shippingStateGeo?has_content>, ${shippingStateGeo.geoName!}</#if>
+                  ${shippingAddress.postalCode!}
                 </li>
+                <li>
+                  <#assign shippingCountryGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.countryGeoId!}, false))! />
+                  <#if shippingCountryGeo?has_content>${shippingCountryGeo.geoName!}</#if>
+                </li>
               </ul>
             </li>
           </#if>
-          <#assign outputted = true>
-        </#list>
-      </#if>
-      <#-- billing account info -->
-      <#if billingAccount?has_content>
-        <#if outputted?default(false)>
-        </#if>
-        <#assign outputted = true>
-        <li>
-          ${uiLabelMap.AccountingBillingAccount}
-          #${billingAccount.billingAccountId!} - ${billingAccount.description!}
-        </li>
-      </#if>
-      <#if (customerPoNumberSet?has_content)>
-        <li>
-          ${uiLabelMap.OrderPurchaseOrderNumber}
-          <#list customerPoNumberSet as customerPoNumber>
-            ${customerPoNumber!}
-          </#list>
-        </li>
-      </#if>
-    </ul>
-  </#if>
-</div>
-</div>
-<#-- right side -->
-<div class="screenlet columnRight">
-  <#if orderItemShipGroups?has_content>
-    <h3>${uiLabelMap.OrderShippingInformation}</h3>
-    <#-- shipping address -->
-    <#assign groupIdx = 0>
-    <#list orderItemShipGroups as shipGroup>
-      <#if orderHeader?has_content>
-        <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!>
-        <#assign groupNumber = shipGroup.shipGroupSeqId!>
-      <#else>
-        <#assign shippingAddress = cart.getShippingAddress(groupIdx)!>
-        <#assign groupNumber = groupIdx + 1>
-      </#if>
-      <ul>
-        <#if shippingAddress?has_content>
           <li>
             <ul>
               <li>
-                ${uiLabelMap.OrderDestination} [${groupNumber}]
-                <#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName}</#if>
+                ${uiLabelMap.OrderMethod}:
+                <#if orderHeader?has_content>
+                  <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)!>
+                  <#assign carrierPartyId = shipGroup.carrierPartyId!>
+                <#else>
+                  <#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)!>
+                  <#assign carrierPartyId = cart.getCarrierPartyId(groupIdx)!>
+                </#if>
+                <#if carrierPartyId?? && carrierPartyId != "_NA_">${carrierPartyId!}</#if>
+                ${(shipmentMethodType.description)?default("N/A")}
               </li>
               <li>
-                <#if shippingAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${shippingAddress.attnName}</#if>
+                <#if shippingAccount??>${uiLabelMap.AccountingUseAccount}: ${shippingAccount}</#if>
               </li>
-              <li>
-                ${shippingAddress.address1}
-              </li>
-              <li>
-                <#if shippingAddress.address2?has_content>${shippingAddress.address2}</#if>
-              </li>
-              <li>
-                <#assign shippingStateGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.stateProvinceGeoId!}, false))! />
-                ${shippingAddress.city}<#if shippingStateGeo?has_content>, ${shippingStateGeo.geoName!}</#if> ${shippingAddress.postalCode!}
-              </li>
-              <li>
-                <#assign shippingCountryGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.countryGeoId!}, false))! />
-                <#if shippingCountryGeo?has_content>${shippingCountryGeo.geoName!}</#if>
-              </li>
             </ul>
           </li>
-        </#if>
-        <li>
-          <ul>
+          <#-- tracking number -->
+          <#if trackingNumber?has_content || orderShipmentInfoSummaryList?has_content>
             <li>
-              ${uiLabelMap.OrderMethod}:
-              <#if orderHeader?has_content>
-                <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)!>
-                <#assign carrierPartyId = shipGroup.carrierPartyId!>
-              <#else>
-                <#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)!>
-                <#assign carrierPartyId = cart.getCarrierPartyId(groupIdx)!>
+              ${uiLabelMap.OrderTrackingNumber}
+              <#-- TODO: add links to UPS/FEDEX/etc based on carrier partyId  -->
+              <#if shipGroup.trackingNumber?has_content>
+                ${shipGroup.trackingNumber}
               </#if>
-              <#if carrierPartyId?? && carrierPartyId != "_NA_">${carrierPartyId!}</#if>
-              ${(shipmentMethodType.description)?default("N/A")}
+              <#if orderShipmentInfoSummaryList?has_content>
+                <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
+                  <#if (orderShipmentInfoSummaryList?size > 1)>${orderShipmentInfoSummary.shipmentPackageSeqId}: </#if>
+                  Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
+                  <#if orderShipmentInfoSummary.boxNumber?has_content>
+                    ${uiLabelMap.OrderBoxNumber}${orderShipmentInfoSummary.boxNumber}
+                  </#if>
+                  <#if orderShipmentInfoSummary.carrierPartyId?has_content>
+                    (${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId})
+                  </#if>
+                </#list>
+              </#if>
             </li>
-            <li>
-              <#if shippingAccount??>${uiLabelMap.AccountingUseAccount}: ${shippingAccount}</#if>
-            </li>
-          </ul>
-        </li>
-        <#-- tracking number -->
-        <#if trackingNumber?has_content || orderShipmentInfoSummaryList?has_content>
-          <li>
-            ${uiLabelMap.OrderTrackingNumber}
-            <#-- TODO: add links to UPS/FEDEX/etc based on carrier partyId  -->
-            <#if shipGroup.trackingNumber?has_content>
-              ${shipGroup.trackingNumber}
-            </#if>
-            <#if orderShipmentInfoSummaryList?has_content>
-              <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
-                <#if (orderShipmentInfoSummaryList?size > 1)>${orderShipmentInfoSummary.shipmentPackageSeqId}: </#if>
-                Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
-                <#if orderShipmentInfoSummary.boxNumber?has_content>${uiLabelMap.OrderBoxNumber}${orderShipmentInfoSummary.boxNumber}</#if>
-                <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId})</#if>
-              </#list>
-            </#if>
-          </li>
           </#if>
           <#-- splitting preference -->
           <#if orderHeader?has_content>
@@ -328,8 +344,7 @@
           </#if>
           <#if shippingInstructions?has_content>
             <li>
-              ${uiLabelMap.OrderInstructions}
-              ${shippingInstructions}
+              ${uiLabelMap.OrderInstructions} ${shippingInstructions}
             </li>
           </#if>
           <#-- gift settings -->
@@ -341,25 +356,23 @@
             <#assign giftMessage = cart.getGiftMessage(groupIdx)!>
           </#if>
           <#if productStore.showCheckoutGiftOptions! != "N">
-          <li>
-            ${uiLabelMap.OrderGift}?
-            <#if isGift?default("N") == "N">${uiLabelMap.OrderThisIsNotGift}.</#if>
-            <#if isGift?default("N") == "Y">${uiLabelMap.OrderThisIsGift}.</#if>
-          </li>
-          <#if giftMessage?has_content>
             <li>
-              ${uiLabelMap.OrderGiftMessage}
-              ${giftMessage}
+              ${uiLabelMap.OrderGift}?
+              <#if isGift?default("N") == "N">${uiLabelMap.OrderThisIsNotGift}.</#if>
+              <#if isGift?default("N") == "Y">${uiLabelMap.OrderThisIsGift}.</#if>
             </li>
+            <#if giftMessage?has_content>
+              <li>
+                ${uiLabelMap.OrderGiftMessage} ${giftMessage}
+              </li>
+            </#if>
           </#if>
-        </#if>
-        <#if shipGroup_has_next>
-        </#if>
-      </ul>
-      <#assign groupIdx = groupIdx + 1>
-    </#list><#-- end list of orderItemShipGroups -->
-  </#if>
-</div>
+          <#if shipGroup_has_next></#if>
+        </ul>
+        <#assign groupIdx = groupIdx + 1>
+      </#list><#-- end list of orderItemShipGroups -->
+    </#if>
+  </div>
 
-<div class="clearBoth"></div>
+  <div class="clearBoth"></div>
 </div>
Index: specialpurpose/ecommerce/template/order/OrderHistory.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OrderHistory.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OrderHistory.ftl	(working copy)
@@ -46,13 +46,19 @@
               <#if distinctInvoiceIds?has_content>
                 <td>
                   <#list distinctInvoiceIds as invoiceId>
-                     <a href="<@ofbizUrl>invoice.pdf?invoiceId=${invoiceId}</@ofbizUrl>" class="buttontext">(${invoiceId} PDF) </a>
+                     <a href="<@ofbizUrl>invoice.pdf?invoiceId=${invoiceId}</@ofbizUrl>" class="buttontext">
+                       (${invoiceId} PDF)
+                     </a>
                   </#list>
                 </td>
               <#else>
                 <td></td>
               </#if>
-              <td><a href="<@ofbizUrl>orderstatus?orderId=${orderHeader.orderId}</@ofbizUrl>" class="button">${uiLabelMap.CommonView}</a></td>
+              <td>
+                <a href="<@ofbizUrl>orderstatus?orderId=${orderHeader.orderId}</@ofbizUrl>" class="button">
+                  ${uiLabelMap.CommonView}
+                </a>
+              </td>
             </tr>
           </#list>
         <#else>
@@ -82,7 +88,12 @@
               <td>${porderHeader.orderId}</td>
               <td><@ofbizCurrency amount=porderHeader.grandTotal isoCode=porderHeader.currencyUom /></td>
               <td>${pstatus.get("description",locale)}</td>
-              <td><a href="<@ofbizUrl>orderstatus?orderId=${porderHeader.orderId}</@ofbizUrl>" class="button">${uiLabelMap.CommonView}</a></td>
+              <td>
+                <a href="<@ofbizUrl>orderstatus?orderId=${porderHeader.orderId}</@ofbizUrl>"
+                    class="button">
+                  ${uiLabelMap.CommonView}
+                </a>
+              </td>
             </tr>
           </#list>
         <#else>
Index: specialpurpose/ecommerce/template/order/OrderItems.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OrderItems.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OrderItems.ftl	(working copy)
@@ -22,280 +22,319 @@
 <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/></#if>
 <div class="screenlet">
   <h3>
-      <#assign numColumns = 8>
-      <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
-          <#assign numColumns = 11>
-          <a href="javascript:document.addCommonToCartForm.add_all.value='true';document.addCommonToCartForm.submit()" class="submenutext">${uiLabelMap.OrderAddAllToCart}</a><a href="javascript:document.addCommonToCartForm.add_all.value='false';document.addCommonToCartForm.submit()" class="submenutext">${uiLabelMap.OrderAddCheckedToCart}</a><a href="<@ofbizUrl fullPath="true">createShoppingListFromOrder?orderId=${orderHeader.orderId}&amp;frequency=6&amp;intervalNumber=1&amp;shoppingListTypeId=SLT_AUTO_REODR</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth}</a>
-      </#if>
-      ${uiLabelMap.OrderOrderItems}
+    <#assign numColumns = 8>
+    <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
+      <#assign numColumns = 11>
+      <a href="javascript:document.addCommonToCartForm.add_all.value='true';document.addCommonToCartForm.submit()"
+          class="submenutext">${uiLabelMap.OrderAddAllToCart}</a>
+      <a href="javascript:document.addCommonToCartForm.add_all.value='false';document.addCommonToCartForm.submit()"
+          class="submenutext">${uiLabelMap.OrderAddCheckedToCart}</a>
+      <a href="<@ofbizUrl fullPath="true">createShoppingListFromOrder?orderId=${orderHeader.orderId}&amp;frequency=6&amp;intervalNumber=1&amp;shoppingListTypeId=SLT_AUTO_REODR</@ofbizUrl>"
+          class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth}</a>
+    </#if>
+    ${uiLabelMap.OrderOrderItems}
   </h3>
   <table>
     <thead>
-    <tr>
-      <th>${uiLabelMap.OrderProduct}</th>
-      <#if maySelectItems?default("N") == "Y">
-        <th>${uiLabelMap.OrderQtyOrdered}</th>
-        <th>${uiLabelMap.OrderQtyPicked}</th>
-        <th>${uiLabelMap.OrderQtyShipped}</th>
-        <th>${uiLabelMap.OrderQtyCanceled}</th>
-      <#else>
-        <th></th>
-        <th></th>
-        <th></th>
-        <th>${uiLabelMap.OrderQtyOrdered}</th>
-      </#if>
-      <th >${uiLabelMap.EcommerceUnitPrice}</th>
-      <th >${uiLabelMap.OrderAdjustments}</th>
-      <th >${uiLabelMap.CommonSubtotal}</th>
-      <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
-        <th colspan="3"></th>
-      </#if>
-    </tr>
+      <tr>
+        <th>${uiLabelMap.OrderProduct}</th>
+        <#if maySelectItems?default("N") == "Y">
+          <th>${uiLabelMap.OrderQtyOrdered}</th>
+          <th>${uiLabelMap.OrderQtyPicked}</th>
+          <th>${uiLabelMap.OrderQtyShipped}</th>
+          <th>${uiLabelMap.OrderQtyCanceled}</th>
+        <#else>
+          <th></th>
+          <th></th>
+          <th></th>
+          <th>${uiLabelMap.OrderQtyOrdered}</th>
+        </#if>
+          <th>${uiLabelMap.EcommerceUnitPrice}</th>
+          <th>${uiLabelMap.OrderAdjustments}</th>
+          <th>${uiLabelMap.CommonSubtotal}</th>
+        <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
+          <th colspan="3"></th>
+        </#if>
+      </tr>
     </thead>
     <tfoot>
-    <tr>
-      <th colspan="7">${uiLabelMap.CommonSubtotal}</th>
-      <td><@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/></td>
-      <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
-    </tr>
-    <#list headerAdjustmentsToShow as orderHeaderAdjustment>
       <tr>
-        <th colspan="7">${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</th>
-        <td><@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/></td>
-        <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
+        <th colspan="7">${uiLabelMap.CommonSubtotal}</th>
+        <td><@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/></td>
+        <#if maySelectItems?default("N") == "Y">
+          <td colspan="3"></td>
+        </#if>
       </tr>
-    </#list>
-    <tr>
-      <th colspan="7">${uiLabelMap.OrderShippingAndHandling}</th>
-      <td><@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/></td>
-      <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
-    </tr>
-    <tr>
-      <th colspan="7">${uiLabelMap.OrderSalesTax}</th>
-      <td><@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/></td>
-      <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
-    </tr>
-    <tr>
-      <td colspan="3"></td>
-      <#if maySelectItems?default("N") == "Y">
-        <td colspan="${numColumns - 6}"></td>
+      <#list headerAdjustmentsToShow as orderHeaderAdjustment>
+        <tr>
+          <th colspan="7">${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</th>
+          <td><@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/></td>
+          <#if maySelectItems?default("N") == "Y">
+            <td colspan="3"></td>
+          </#if>
+        </tr>
+      </#list>
+      <tr>
+        <th colspan="7">${uiLabelMap.OrderShippingAndHandling}</th>
+        <td><@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/></td>
+        <#if maySelectItems?default("N") == "Y">
+          <td colspan="3"></td>
+        </#if>
+      </tr>
+      <tr>
+        <th colspan="7">${uiLabelMap.OrderSalesTax}</th>
+        <td><@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/></td>
+        <#if maySelectItems?default("N") == "Y">
+          <td colspan="3"></td>
+        </#if>
+      </tr>
+      <tr>
         <td colspan="3"></td>
-      <#else>
-        <td colspan="${numColumns - 3}"></td>
-      </#if>
-    </tr>
-    <tr>
-      <th colspan="7">${uiLabelMap.OrderGrandTotal}</th>
-      <td>
-        <@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/>
-      </td>
-      <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
-    </tr>
+        <#if maySelectItems?default("N") == "Y">
+          <td colspan="${numColumns - 6}"></td>
+          <td colspan="3"></td>
+        <#else>
+          <td colspan="${numColumns - 3}"></td>
+        </#if>
+      </tr>
+      <tr>
+        <th colspan="7">${uiLabelMap.OrderGrandTotal}</th>
+        <td>
+          <@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/>
+        </td>
+        <#if maySelectItems?default("N") == "Y">
+          <td colspan="3"></td>
+        </#if>
+      </tr>
     </tfoot>
     <tbody>
-    <#list orderItems as orderItem>
-      <#-- get info from workeffort and calculate rental quantity, if it was a rental item -->
-      <#assign rentalQuantity = 1> <#-- no change if no rental item -->
-      <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM" && workEfforts??>
-        <#list workEfforts as workEffort>
-          <#if workEffort.workEffortId == orderItem.orderItemSeqId>
-            <#assign rentalQuantity = localOrderReadHelper.getWorkEffortRentalQuantity(workEffort)>
-            <#assign workEffortSave = workEffort>
-            <#break>
+      <#list orderItems as orderItem>
+        <#-- get info from workeffort and calculate rental quantity, if it was a rental item -->
+        <#assign rentalQuantity = 1> <#-- no change if no rental item -->
+        <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM" && workEfforts??>
+          <#list workEfforts as workEffort>
+            <#if workEffort.workEffortId == orderItem.orderItemSeqId>
+              <#assign rentalQuantity = localOrderReadHelper.getWorkEffortRentalQuantity(workEffort)>
+              <#assign workEffortSave = workEffort>
+              <#break>
+            </#if>
+          </#list>
+        <#else>
+          <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!>
+          <#if WorkOrderItemFulfillments?has_content>
+            <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment>
+              <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!>
+              <#break>
+            </#list>
           </#if>
-        </#list>
-      <#else>
-        <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!>
-        <#if WorkOrderItemFulfillments?has_content>
-          <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment>
-            <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!>
-            <#break>
-           </#list>
         </#if>
-      </#if>
-      <tr><td colspan="${numColumns}"></td></tr>
-      <tr>
-        <#if !orderItem.productId?? || orderItem.productId == "_?_">
-          <td >
-            ${orderItem.itemDescription?default("")}
-          </td>
-        <#else>
-          <#assign product = orderItem.getRelatedOne("Product", true)!/> <#-- should always exist because of FK constraint, but just in case -->
-          <td >
-            <a href="<@ofbizCatalogAltUrl fullPath="true" secure="false" productId=orderItem.productId/>" class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")}</a>
-            <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/>
-            <#if orderItemAttributes?has_content>
+        <tr>
+          <td colspan="${numColumns}"></td>
+        </tr>
+        <tr>
+          <#if !orderItem.productId?? || orderItem.productId == "_?_">
+            <td>${orderItem.itemDescription?default("")}</td>
+          <#else>
+            <#assign product = orderItem.getRelatedOne("Product", true)!/> <#-- should always exist because of FK constraint, but just in case -->
+            <td>
+              <a href="<@ofbizCatalogAltUrl fullPath="true" secure="false" productId=orderItem.productId/>"
+                  class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")}</a>
+              <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/>
+              <#if orderItemAttributes?has_content>
                 <ul>
-                <#list orderItemAttributes as orderItemAttribute>
-                    <li>
-                        ${orderItemAttribute.attrName} : ${orderItemAttribute.attrValue}
-                    </li>
-                </#list>
+                  <#list orderItemAttributes as orderItemAttribute>
+                    <li>${orderItemAttribute.attrName} : ${orderItemAttribute.attrValue}</li>
+                  </#list>
                 </ul>
-            </#if>
-            <#if product?has_content>
-              <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
+              </#if>
+              <#if product?has_content>
+                <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
                   [${uiLabelMap.OrderPieces}: ${product.piecesIncluded}]
+                </#if>
+                <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content>
+                  <#assign quantityUom = product.getRelatedOne("QuantityUom", true)!/>
+                  [${uiLabelMap.CommonQuantity}
+                  : ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}]
+                </#if>
+                <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content>
+                  <#assign weightUom = product.getRelatedOne("WeightUom", true)!/>
+                  [${uiLabelMap.CommonWeight}
+                  : ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}]
+                </#if>
+                <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content>
+                  <#assign heightUom = product.getRelatedOne("HeightUom", true)!/>
+                  [${uiLabelMap.CommonHeight}
+                  : ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}]
+                </#if>
+                <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content>
+                  <#assign widthUom = product.getRelatedOne("WidthUom", true)!/>
+                  [${uiLabelMap.CommonWidth}
+                  : ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}]
+                </#if>
+                <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content>
+                  <#assign depthUom = product.getRelatedOne("DepthUom", true)!/>
+                  [${uiLabelMap.CommonDepth}
+                  : ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}]
+                </#if>
               </#if>
-              <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content>
-                <#assign quantityUom = product.getRelatedOne("QuantityUom", true)!/>
-                  [${uiLabelMap.CommonQuantity}: ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}]
+              <#if maySelectItems?default("N") == "Y">
+                <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!>
+                <#if returns?has_content>
+                  <#list returns as return>
+                    <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)>
+                    <#if returnHeader.statusId != "RETURN_CANCELLED">
+                      <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED">
+                        <#assign displayState = "Return Pending">
+                      <#else>
+                        <#assign displayState = "Returned">
+                      </#if>
+                    ${displayState} (#${return.returnId})
+                    </#if>
+                  </#list>
+                </#if>
               </#if>
-              <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content>
-                <#assign weightUom = product.getRelatedOne("WeightUom", true)!/>
-                  [${uiLabelMap.CommonWeight}: ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}]
-              </#if>
-              <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content>
-                <#assign heightUom = product.getRelatedOne("HeightUom", true)!/>
-                  [${uiLabelMap.CommonHeight}: ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}]
-              </#if>
-              <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content>
-                <#assign widthUom = product.getRelatedOne("WidthUom", true)!/>
-                  [${uiLabelMap.CommonWidth}: ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}]
-              </#if>
-              <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content>
-                <#assign depthUom = product.getRelatedOne("DepthUom", true)!/>
-                  [${uiLabelMap.CommonDepth}: ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}]
-              </#if>
+            </td>
+            <#if !(maySelectItems?default("N") == "Y")>
+              <td></td>
+              <td></td>
+              <td></td>
             </#if>
+            <td>
+              ${orderItem.quantity?string.number}
+            </td>
             <#if maySelectItems?default("N") == "Y">
-              <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!>
-              <#if returns?has_content>
-                <#list returns as return>
-                  <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)>
-                  <#if returnHeader.statusId != "RETURN_CANCELLED">
-                    <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED">
-                      <#assign displayState = "Return Pending">
-                    <#else>
-                      <#assign displayState = "Returned">
-                    </#if>
-                    ${displayState} (#${return.returnId})
-                  </#if>
-                </#list>
+              <td>
+                <#assign pickedQty = localOrderReadHelper.getItemPickedQuantityBd(orderItem)>
+                <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">${pickedQty?default(0)?string.number}<#else>${pickedQty?default(0)?string.number}</#if>
+              </td>
+              <td>
+                <#assign shippedQty = localOrderReadHelper.getItemShippedQuantity(orderItem)>
+                ${shippedQty?default(0)?string.number}
+              </td>
+              <td>
+                <#assign canceledQty = localOrderReadHelper.getItemCanceledQuantity(orderItem)>
+                ${canceledQty?default(0)?string.number}
+              </td>
+            </#if>
+            <td>
+              <@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/>
+            </td>
+            <td>
+              <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/>
+            </td>
+            <td>
+              <#if workEfforts??>
+                  <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/>
+                <#else>
+                <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/>
               </#if>
+            </td>
+            <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
+              <td></td>
+              <td>
+                <input name="item_id" value="${orderItem.orderItemSeqId}" type="checkbox"/>
+              </td>
+              <td></td>
             </#if>
-          </td>
-          <#if !(maySelectItems?default("N") == "Y")>
-            <td></td>
-            <td></td>
-            <td></td>
           </#if>
-          <td>
-            ${orderItem.quantity?string.number}
-          </td>
-          <#if maySelectItems?default("N") == "Y">
-          <td>
-            <#assign pickedQty = localOrderReadHelper.getItemPickedQuantityBd(orderItem)>
-            <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">${pickedQty?default(0)?string.number}<#else>${pickedQty?default(0)?string.number}</#if>
-          </td>
-          <td>
-            <#assign shippedQty = localOrderReadHelper.getItemShippedQuantity(orderItem)>
-            ${shippedQty?default(0)?string.number}
-          </td>
-          <td>
-            <#assign canceledQty = localOrderReadHelper.getItemCanceledQuantity(orderItem)>
-            ${canceledQty?default(0)?string.number}
-          </td>
-          </#if>
-          <td>
-            <@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/>
-          </td>
-          <td>
-            <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/>
-          </td>
-          <td>
-            <#if workEfforts??>
-              <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/>
-            <#else>
-              <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/>
-            </#if>
-          </td>
-          <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER">
+        </tr>
+        <#-- now cancel reason and comment field -->
+        <#if maySelectItems?default("N") == "Y" && (orderHeader.statusId != "ORDER_SENT" && orderItem.statusId != "ITEM_COMPLETED" && orderItem.statusId != "ITEM_CANCELLED" && pickedQty == 0)>
+          <tr>
+            <td colspan="7">${uiLabelMap.OrderReturnReason}
+              <select name="irm_${orderItem.orderItemSeqId}" class="selectBox">
+                <option value=""></option>
+                <#list orderItemChangeReasons as reason>
+                  <option value="${reason.enumId}">${reason.get("description",locale)?default(reason.enumId)}</option>
+                </#list>
+              </select>
+            ${uiLabelMap.CommonComments}
+              <input class="inputBox" type="text" name="icm_${orderItem.orderItemSeqId}" value="" size="30" maxlength="60"/>
+            </td>
+            <td colspan="4"><a
+                href="javascript:document.addCommonToCartForm.action='<@ofbizUrl>cancelOrderItem</@ofbizUrl>';document.addCommonToCartForm.submit()"
+                class="buttontext">${uiLabelMap.CommonCancel}</a>
+              <input type="hidden" name="orderItemSeqId" value="${orderItem.orderItemSeqId}"/>
+            </td>
+          </tr>
+        </#if>
+        <#-- show info from workeffort if it was a rental item -->
+        <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM">
+          <#if workEffortSave??>
+          <tr>
             <td></td>
-            <td>
-              <input name="item_id" value="${orderItem.orderItemSeqId}" type="checkbox"/>
+            <td colspan="${numColumns}">${uiLabelMap.CommonFrom}
+              : ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil}
+              ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")}
+              ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s)
             </td>
-            <td></td>
+          </tr>
           </#if>
         </#if>
-      </tr>
-      <#-- now cancel reason and comment field -->
-      <#if maySelectItems?default("N") == "Y" && (orderHeader.statusId != "ORDER_SENT" && orderItem.statusId != "ITEM_COMPLETED" && orderItem.statusId != "ITEM_CANCELLED" && pickedQty == 0)>
-        <tr>
-          <td colspan="7">${uiLabelMap.OrderReturnReason}
-            <select name="irm_${orderItem.orderItemSeqId}" class="selectBox">
-              <option value=""></option>
-              <#list orderItemChangeReasons as reason>
-                <option value="${reason.enumId}">${reason.get("description",locale)?default(reason.enumId)}</option>
-              </#list>
-            </select>
-            ${uiLabelMap.CommonComments}
-            <input class="inputBox" type="text" name="icm_${orderItem.orderItemSeqId}" value="" size="30" maxlength="60"/>
-          </td>
-          <td colspan="4"><a href="javascript:document.addCommonToCartForm.action='<@ofbizUrl>cancelOrderItem</@ofbizUrl>';document.addCommonToCartForm.submit()" class="buttontext">${uiLabelMap.CommonCancel}</a>
-            <input type="hidden" name="orderItemSeqId" value="${orderItem.orderItemSeqId}"/>
-          </td>
-        </tr>
-      </#if>
-      <#-- show info from workeffort if it was a rental item -->
-      <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM">
-        <#if workEffortSave??>
-          <tr><td></td><td colspan="${numColumns}">${uiLabelMap.CommonFrom}: ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s)</td></tr>
-        </#if>
-      </#if>
-      <#-- now show adjustment details per line item -->
-      <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)>
-      <#list itemAdjustments as orderItemAdjustment>
-        <tr>
-          <td>
-            ${uiLabelMap.EcommerceAdjustment}: ${StringUtil.wrapString(localOrderReadHelper.getAdjustmentType(orderItemAdjustment))}
-            <#if orderItemAdjustment.description?has_content>: ${StringUtil.wrapString(orderItemAdjustment.description)}</#if>
-            <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
-              <#if orderItemAdjustment.primaryGeoId?has_content>
-                <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
-                <#if primaryGeo.geoName?has_content>
+        <#-- now show adjustment details per line item -->
+        <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)>
+        <#list itemAdjustments as orderItemAdjustment>
+          <tr>
+            <td>
+            ${uiLabelMap.EcommerceAdjustment}
+              : ${StringUtil.wrapString(localOrderReadHelper.getAdjustmentType(orderItemAdjustment))}
+              <#if orderItemAdjustment.description?has_content>
+                : ${StringUtil.wrapString(orderItemAdjustment.description)}</#if>
+              <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
+                <#if orderItemAdjustment.primaryGeoId?has_content>
+                  <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
+                  <#if primaryGeo.geoName?has_content>
                   ${uiLabelMap.OrderJurisdiction}: ${primaryGeo.geoName} [${primaryGeo.abbreviation!}]
+                  </#if>
+                  <#if orderItemAdjustment.secondaryGeoId?has_content>
+                    <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/>
+                    (${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}])
+                  </#if>
                 </#if>
-                <#if orderItemAdjustment.secondaryGeoId?has_content>
-                  <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/>
-                  (${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}])
-                </#if>
+                <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.EcommerceRate}
+                  : ${orderItemAdjustment.sourcePercentage}</#if>
+                <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId}
+                  : ${orderItemAdjustment.customerReferenceId}</#if>
+                <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.EcommerceExemptAmount}
+                  : ${orderItemAdjustment.exemptAmount}</#if>
               </#if>
-              <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.EcommerceRate}: ${orderItemAdjustment.sourcePercentage}</#if>
-              <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId}: ${orderItemAdjustment.customerReferenceId}</#if>
-              <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.EcommerceExemptAmount}: ${orderItemAdjustment.exemptAmount}</#if>
-            </#if>
-          </td>
-          <td colspan="5"></td>
-          <td>
-            <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/>
-          </td>
-          <td></td>
-          <#if maySelectItems?default("N") == "Y"><td colspan="3"></td></#if>
-        </tr>
-      </#list>
-      <#-- show the order item ship group info -->
-      <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!>
-      <#if orderItemShipGroupAssocs?has_content>
-        <#list orderItemShipGroupAssocs as shipGroupAssoc>
-          <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)!>
-          <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))!>
-          <tr>
-            <td>
-              ${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")}
             </td>
+            <td colspan="5"></td>
             <td>
-              ${shipGroupAssoc.quantity?string.number}
+              <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/>
             </td>
-            <td colspan="${numColumns - 2}"></td>
+            <td></td>
+            <#if maySelectItems?default("N") == "Y">
+              <td colspan="3"></td>
+            </#if>
           </tr>
         </#list>
+        <#-- show the order item ship group info -->
+        <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!>
+        <#if orderItemShipGroupAssocs?has_content>
+          <#list orderItemShipGroupAssocs as shipGroupAssoc>
+            <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)!>
+            <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))!>
+            <tr>
+              <td>
+              ${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")}
+              </td>
+              <td>
+              ${shipGroupAssoc.quantity?string.number}
+              </td>
+              <td colspan="${numColumns - 2}"></td>
+            </tr>
+          </#list>
+        </#if>
+      </#list>
+      <#if orderItems?size == 0 || !orderItems?has_content>
+      <tr>
+        <td colspan="${numColumns}">${uiLabelMap.OrderSalesOrderLookupFailed}</td>
+      </tr>
       </#if>
-    </#list>
-    <#if orderItems?size == 0 || !orderItems?has_content>
-      <tr><td colspan="${numColumns}">${uiLabelMap.OrderSalesOrderLookupFailed}</td></tr>
-    </#if>
-    <tr><td colspan="${numColumns}"></td></tr>
+      <tr>
+        <td colspan="${numColumns}"></td>
+      </tr>
     </tbody>
   </table>
 </div>
Index: specialpurpose/ecommerce/template/order/OrderStatus.ftl
===================================================================
--- specialpurpose/ecommerce/template/order/OrderStatus.ftl	(revision 1761125)
+++ specialpurpose/ecommerce/template/order/OrderStatus.ftl	(working copy)
@@ -24,7 +24,6 @@
     <br />
     ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")}
   </form>
-
 <#else>
   <h3>${uiLabelMap.OrderSpecifiedNotFound}.</h3>
 </#if>
